mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
added sops for all three systems
This commit is contained in:
parent
1742726d84
commit
e6f83f6997
13 changed files with 207 additions and 28 deletions
22
modules/sops.nix
Normal file
22
modules/sops.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue