hosts: use zsh for materus user

This commit is contained in:
Mateusz Słodkowicz 2024-04-05 22:41:31 +02:00
parent 860c28efad
commit 575c698aa1
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
6 changed files with 8 additions and 1 deletions

View File

@ -119,6 +119,7 @@
packages = with pkgs; [ packages = with pkgs; [
kate kate
]; ];
shell = pkgs.zsh;
}; };
# Allow unfree packages # Allow unfree packages

View File

@ -11,6 +11,8 @@
enableTerminalExtra = lib.mkDefault true; enableTerminalExtra = lib.mkDefault true;
enableNixDevel = lib.mkDefault true; enableNixDevel = lib.mkDefault true;
zsh.enable = true;
}; };
home.packages = [ home.packages = [

View File

@ -73,6 +73,7 @@
packages = [ packages = [
]; ];
openssh.authorizedKeys.keyFiles = [ ("${materusArg.cfg.path}" + "/extraFiles/keys/ssh/materus.pub") ]; openssh.authorizedKeys.keyFiles = [ ("${materusArg.cfg.path}" + "/extraFiles/keys/ssh/materus.pub") ];
shell = pkgs.zsh;
}; };
users.users.acme.openssh.authorizedKeys.keyFiles = [ ("${materusArg.cfg.path}" + "/extraFiles/keys/ssh/waffentrager.pub") ]; users.users.acme.openssh.authorizedKeys.keyFiles = [ ("${materusArg.cfg.path}" + "/extraFiles/keys/ssh/waffentrager.pub") ];
users.users.acme.shell = pkgs.scponly; users.users.acme.shell = pkgs.scponly;
@ -99,7 +100,7 @@
services.openssh.enable = true; services.openssh.enable = true;
services.openssh.openFirewall = false; services.openssh.openFirewall = false;
services.openssh.settings.PermitRootLogin = "no"; services.openssh.settings.PermitRootLogin = "no";
services.openssh.settings.PasswordAuthentication = true; services.openssh.settings.PasswordAuthentication = false;

View File

@ -12,5 +12,6 @@
fish.enable = false; fish.enable = false;
bash.enable = true; bash.enable = true;
zsh.enable = true;
}; };
} }

View File

@ -42,6 +42,7 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPEDY+H8Hc/RSLE064AAh8IojvqxPd8BE5gec2aOfYMh materus@podkos.pl" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPEDY+H8Hc/RSLE064AAh8IojvqxPd8BE5gec2aOfYMh materus@podkos.pl"
]; ];
hashedPasswordFile = config.sops.secrets."users/materus".path; hashedPasswordFile = config.sops.secrets."users/materus".path;
shell = pkgs.zsh;
}; };
nix = { nix = {

View File

@ -12,5 +12,6 @@
fish.enable = false; fish.enable = false;
bash.enable = true; bash.enable = true;
zsh.enable = true;
}; };
} }