mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 17:03:56 -05:00
19 lines
424 B
Nix
19 lines
424 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
sops-nix,
|
|
self',
|
|
|
|
}:
|
|
{
|
|
imports = [ sops-nix.nixosModules.sops ];
|
|
options.local.sops.disable = lib.mkEnableOption "";
|
|
config = lib.mkIf (!config.local.sops.disable) {
|
|
environment.systemPackages = [ pkgs.sops ];
|
|
sops = {
|
|
defaultSopsFile = "${self'}/hosts/${config.networking.hostName}/secrets.yaml";
|
|
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
|
};
|
|
};
|
|
}
|