diff --git a/hosts/Parzival-Live/default.nix b/hosts/Parzival-Live/default.nix index f3a7422..78d9d96 100644 --- a/hosts/Parzival-Live/default.nix +++ b/hosts/Parzival-Live/default.nix @@ -1,6 +1,5 @@ { - config, - pkgs, + inputs, modulesPath, lib, ... @@ -17,9 +16,9 @@ boot.supportedFilesystems = lib.mkForce ["zfs" "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs"]; networking.wireless.enable = false; - users.users.nixos.authorizedKeys.keys = lib.mkForce [ - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCccZhYmAIdbBv0vuvhKvnD0sm6dphdngef1jFwDhcUexoEZq8sXB3N69gsQV+ievv++T5SfEwLPEJSgVEwtwYHTCwxnGscD+thYXOacoMr3++1toCKgFHLIWrbma8jSzSDp8ERuVcbeYo/xckxCL3+axlUmyQw6TXsDbOJTYhGuJdCMlHJNl0EftwgnJZ4e+WqW/5jmG9Nu3KDgpyjYVA4v6xtkjS+NCVA3jOdDs0JPFemhb2b5ItAGe60IH65PaX63QFysxMWil0+EF04L+23sYwRMMfz9F/AX62uonemzROTAIu78grUWgjHqGQ2yOhdnOwNT0wox1KhG+r/lvFX" - ]; + users.users.nixos.authorizedKeys.keyFiles = lib.mkForce [ + inputs.nix-secrets.keys.default +]; user.live.enable = true; diff --git a/modules/users/crow/user.nix b/modules/users/crow/user.nix index b97815d..a5b7a09 100644 --- a/modules/users/crow/user.nix +++ b/modules/users/crow/user.nix @@ -1,5 +1,5 @@ { - pkgs, + inputs, lib, config, ... @@ -8,6 +8,9 @@ isNormalUser = true; initialPassword = "changeme"; extraGroups = ["wheel" "networkmanager" "audio" "plugdev" "dialout"]; + openssh.authorizedKeys.keyFiles = [ + inputs.nix-secrets.keys.default + ]; }; config.home-manager.users.crow = lib.mkIf config.user.crow.home.enable ./home.nix; diff --git a/modules/users/live/user.nix b/modules/users/live/user.nix index e3f6828..15f90e7 100644 --- a/modules/users/live/user.nix +++ b/modules/users/live/user.nix @@ -1,5 +1,5 @@ { - pkgs, + inputs, lib, config, ... @@ -9,8 +9,8 @@ lib.mkIf config.user.live.enable { isNormalUser = true; initialPassword = "live"; extraGroups = ["wheel" "networkmanager" "audio" "plugdev"]; - openssh.authorizedKeys.keys = [ - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCccZhYmAIdbBv0vuvhKvnD0sm6dphdngef1jFwDhcUexoEZq8sXB3N69gsQV+ievv++T5SfEwLPEJSgVEwtwYHTCwxnGscD+thYXOacoMr3++1toCKgFHLIWrbma8jSzSDp8ERuVcbeYo/xckxCL3+axlUmyQw6TXsDbOJTYhGuJdCMlHJNl0EftwgnJZ4e+WqW/5jmG9Nu3KDgpyjYVA4v6xtkjS+NCVA3jOdDs0JPFemhb2b5ItAGe60IH65PaX63QFysxMWil0+EF04L+23sYwRMMfz9F/AX62uonemzROTAIu78grUWgjHqGQ2yOhdnOwNT0wox1KhG+r/lvFX" + openssh.authorizedKeys.keyFiles = [ + inputs.nix-secrets.keys.default ]; }; } diff --git a/modules/users/overseer/user.nix b/modules/users/overseer/user.nix index 545bcbc..4f21ad6 100644 --- a/modules/users/overseer/user.nix +++ b/modules/users/overseer/user.nix @@ -1,4 +1,5 @@ { + inputs, lib, config, ... @@ -7,8 +8,9 @@ isNormalUser = true; initialPassword = "changeme"; extraGroups = ["wheel" "libvirtd"]; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKCBmjkaAWNBQ6NwiK56miuv30pjheNTZfrULRfPRmed" + openssh.authorizedKeys.keyFiles = [ + inputs.nix-secrets.keys.default + inputs.nix-secrets.keys.overseer ]; }; }