mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
19 lines
379 B
Nix
19 lines
379 B
Nix
{
|
|
config,
|
|
inputs,
|
|
self,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ inputs.sops-nix.nixosModules.sops ];
|
|
|
|
options.myConfig.sops.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.myConfig.sops.enable {
|
|
sops = {
|
|
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
|
defaultSopsFile = "${self}/hosts/${config.networking.hostName}/secrets.yaml";
|
|
};
|
|
};
|
|
}
|