added sops-nix
This commit is contained in:
parent
b1e609f8f4
commit
d6754f73f6
7 changed files with 80 additions and 7 deletions
|
@ -6,6 +6,7 @@
|
|||
./keyd.nix
|
||||
./mimetype.nix
|
||||
./optimise.nix
|
||||
./sops.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
18
hosts/common/sops.nix
Normal file
18
hosts/common/sops.nix
Normal 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" = {
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue