sops: move sops module to global modules
This commit is contained in:
parent
6a751d78e9
commit
1a1167cd0d
2 changed files with 15 additions and 11 deletions
14
modules/nixos/services/homeserver/sops.nix
Executable file → Normal file
14
modules/nixos/services/homeserver/sops.nix
Executable file → Normal file
|
|
@ -1,13 +1,5 @@
|
||||||
{ inputs, config, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ inputs.sops-nix.nixosModules.sops ];
|
sops.defaultSopsFile = "/etc/nixos/secrets/drone.yaml";
|
||||||
|
}
|
||||||
sops = {
|
|
||||||
defaultSopsFile = "/etc/nixos/secrets/secrets.yaml";
|
|
||||||
defaultSopsFormat = "yaml";
|
|
||||||
validateSopsFiles = false;
|
|
||||||
|
|
||||||
age.keyFile = "/root/.config/sops/age/keys.txt";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
12
modules/nixos/services/sops.nix
Executable file
12
modules/nixos/services/sops.nix
Executable file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{ inputs, config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [ inputs.sops-nix.nixosModules.sops ];
|
||||||
|
|
||||||
|
sops = {
|
||||||
|
defaultSopsFormat = "yaml";
|
||||||
|
validateSopsFiles = false;
|
||||||
|
|
||||||
|
age.keyFile = "/root/.config/sops/age/keys.txt";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue