added sops-nix

This commit is contained in:
willifan 2024-12-08 17:13:15 +01:00
parent b1e609f8f4
commit d6754f73f6
7 changed files with 80 additions and 7 deletions

View file

@ -6,6 +6,7 @@
./keyd.nix
./mimetype.nix
./optimise.nix
./sops.nix
];
networking = {

18
hosts/common/sops.nix Normal file
View file

@ -0,0 +1,18 @@
{ attrs, ... }:
{
imports = [
attrs.sops-nix.nixosModules.sops
];
sops.defaultSopsFile = ../../secrets/secrets.yaml;
sops.defaultSopsFormat = "yaml";
sops.age.keyFile = "/home/willifan/.config/sops/age/keys.txt";
sops.secrets."ssh/root/private" = {
owner = "root";
};
sops.secrets."syncthing/password" = {
};
}