From 3ccc68f167184a093c79cab4ff8e25b37206a20c Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Sun, 19 Oct 2025 13:30:52 +0200 Subject: Add agenix --- configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'configuration.nix') diff --git a/configuration.nix b/configuration.nix index 78a98a1..8416a4d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -31,13 +31,14 @@ isNormalUser = true; extraGroups = [ "wheel" "wireshark" ]; shell = pkgs.fish; - hashedPassword = "REDACTED"; + hashedPasswordFile = config.age.secrets."password-hash.txt".path; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPC69ml72mqbn7L3QkpsCJuWdrKFYFNd0MaS5xERbuSF" "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEdUe7mxGdV/Q37RKndPzDHisFb7q/xm+L97jcGluSDOA8MGt/+wTxpyGxfyEqaMvwV2bakaMVHTB3711dDu5kE=" "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLZ6OVyjTvWx9gvS+/DvkQW5VvLBbykq/0AV5mYDLADDtIOaDVscQ3lGOcUsga1ODNSl14MSV63bE8VtHfG1HOc=" ]; }; + age.secrets."password-hash.txt".file = ./secrets/password-hash.txt.age; programs.fish.enable = true; @@ -46,8 +47,12 @@ curl git (ffmpeg.override { withVpl = true; }) + (inputs.agenix.packages.${pkgs.system}.agenix) + age-plugin-yubikey ]; + age.identityPaths = [ "/nix/persist/etc/ssh/ssh_host_ed25519_key" ]; + services.openssh.enable = true; services.openssh.settings = { PasswordAuthentication = false; -- cgit v1.2.3