From 2af6761a8cacab8f421f1ce4043cc5f998f30192 Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Mon, 3 Jun 2024 10:41:45 -0300 Subject: more stuff --- users/leonardo.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'users/leonardo.nix') diff --git a/users/leonardo.nix b/users/leonardo.nix index 02f2dff..4795223 100644 --- a/users/leonardo.nix +++ b/users/leonardo.nix @@ -18,8 +18,9 @@ }; }; - environment.systemPackages = [ - pkgs.prismlauncher + environment.systemPackages = with pkgs;[ + prismlauncher + rage ]; nixpkgs = { @@ -92,7 +93,13 @@ "context.properties"."module.x11.bell" = false; }; }; - services.openssh.enable = true; + services.openssh = { + enable = true; + settings = { + KbdInteractiveAuthentication = false; + PasswordAuthentication = false; + }; + }; users.mutableUsers = false; users.users.leonardo = { isNormalUser = true; @@ -100,6 +107,7 @@ extraGroups = [ "networkmanager" "wheel" ]; shell = pkgs.bashInteractive; hashedPasswordFile = config.age.secrets.user-pass.path; + openssh.authorizedKeys.keys = builtins.attrValues (import ../secrets/hosts-pub-keys.nix); }; age.secrets = { -- cgit v1.2.3