1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Further adaption on sops

This commit is contained in:
Stefan Ellmauthaler 2022-05-31 15:58:01 +02:00
parent 22fdcbf773
commit d2f9a557f0
Failed to extract signature
4 changed files with 13 additions and 8 deletions

View File

@ -1,2 +1,7 @@
keys:
- &stefan_ellmauthaler 3B39 8B08 6C41 0264 A14F B353 B1E6 F030 30A4 AEAA
- &stefan_ellmauthaler 3B39 8B08 6C41 0264 A14F 3B53 B1E6 F030 30A4 AEAA
creation_rules:
- path_regex: secrets/[^/]+\.yaml$
key_groups:
- pgp:
- *stefan_ellmauthaler

View File

@ -97,9 +97,7 @@
inputs.home-manager.nixosModules.home-manager
inputs.sops-nix.nixosModules.sops
inputs.dwarffs.nixosModules.dwarffs
] ++ (map (name: ./modules + "/${name}") (moduleNames ./modules)) ++ [
./secrets
];
] ++ (map (name: ./modules + "/${name}") (moduleNames ./modules));
specialArgs = {
nixos-hardware = inputs.nixos-hardware.nixosModules;
inherit inputs;

View File

@ -8,8 +8,10 @@ with lib; {
in
mkIf cfg.enable {
sops = {
defaultSopsFile = ./secrets.yaml;
defaultSopsFile = ../secrets/secrets.yaml;
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
age.keyFile = "/var/lib/sops-nix/key.txt";
age.generateKey = true;
};
};
}

View File

@ -10,7 +10,7 @@ with lib; {
services.openssh = {
enable = true;
passwordAuthentication = false;
permitRootLogin = false;
permitRootLogin = "no";
};
};
}