mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
22 lines
457 B
Nix
22 lines
457 B
Nix
{sops-nix, ...}: {
|
|
pkgs,
|
|
settings,
|
|
self,
|
|
config,
|
|
...
|
|
}: {
|
|
imports = [
|
|
sops-nix.nixosModules.sops
|
|
];
|
|
environment.systemPackages = [
|
|
pkgs.sops
|
|
];
|
|
sops = {
|
|
defaultSopsFile = "${self}/systems/${config.networking.hostName}/secrets.yaml";
|
|
age = {
|
|
sshKeyPaths = ["/home/${settings.username}/.ssh/id_ed25519"];
|
|
keyFile = "/home/${settings.username}/.config/sops/age/keys.txt";
|
|
generateKey = true;
|
|
};
|
|
};
|
|
}
|