31 lines
765 B
Nix
31 lines
765 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
users.defaultUserShell = pkgs.zsh;
|
|
programs.zsh = {
|
|
enable = true;
|
|
loginShellInit = ''
|
|
if [ -z "$DISPLAY" ] && [ "$TTY" = "/dev/tty1" ]; then
|
|
exec start-hyprland
|
|
fi
|
|
'';
|
|
};
|
|
|
|
users.users.anish = {
|
|
isNormalUser = true;
|
|
description = "Main Account";
|
|
extraGroups = [ "wheel" "networkmanager" "video" "audio" "gaming" "llm" ];
|
|
openssh.authorizedKeys.keys = [
|
|
# ssh-ed25519 AAAAA.... add my key here to enable ssh from another computer
|
|
];
|
|
};
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PasswordAuthentication = false;
|
|
PermitRootLogin = "no";
|
|
};
|
|
};
|
|
}
|