mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
17 lines
381 B
Nix
17 lines
381 B
Nix
{
|
|
inputs,
|
|
config,
|
|
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 = ../../hosts/dell-laptop/secrets.yaml;
|
|
};
|
|
};
|
|
}
|