globally add sops
This commit is contained in:
parent
3a52166bd7
commit
c0e39fefd1
4 changed files with 29 additions and 0 deletions
|
@ -107,6 +107,7 @@
|
|||
};
|
||||
security = {
|
||||
age.enable = true;
|
||||
sops.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -122,6 +123,12 @@
|
|||
};
|
||||
|
||||
security.pki.certificateFiles = [./trust/homelab.pem];
|
||||
|
||||
networking.wireguard.interfaces = {
|
||||
wg0 = {
|
||||
};
|
||||
};
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
# services.openssh.enable = true;
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./age.nix
|
||||
./sops.nix
|
||||
];
|
||||
}
|
||||
|
|
21
modules/security/sops.nix
Normal file
21
modules/security/sops.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
outputs,
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.modules.security.age;
|
||||
in {
|
||||
options.modules.security.sops = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
sops
|
||||
];
|
||||
};
|
||||
}
|
0
modules/security/sops.nix~
Normal file
0
modules/security/sops.nix~
Normal file
Loading…
Reference in a new issue