initial commit
This commit is contained in:
commit
4014d5e658
30 changed files with 911 additions and 0 deletions
22
modules/sops.nix
Normal file
22
modules/sops.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
imports = [ inputs.sops-nix.nixosModules.sops ];
|
||||
|
||||
sops = {
|
||||
defaultSopsFile = ../secrets.yaml;
|
||||
validateSopsFiles = false;
|
||||
|
||||
# Derive the age key from the systems ssh key. I didn't know this before but
|
||||
# it seems like all systems have ssh keys already generated.
|
||||
age = {
|
||||
sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||
keyFile = "/var/lib/sops-nix/key.txt";
|
||||
generateKey = true;
|
||||
};
|
||||
|
||||
secrets = {
|
||||
"mail/me" = {};
|
||||
"jellyfin/zachary" = {};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue