This commit is contained in:
2023-02-25 04:46:28 +00:00
parent 6e4afd914a
commit c0305a7ed8
38 changed files with 536 additions and 451 deletions

17
hosts/common/sops.nix Normal file
View File

@@ -0,0 +1,17 @@
{ inputs, lib, config, ... }:
{
imports = [
inputs.sops-nix.nixosModules.sops
];
sops = {
defaultSopsFile = ./secrets.yaml;
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
secrets.discogs_json = {
mode = "0440";
owner = config.users.users.sstent.name;
group = config.users.users.sstent.group;
};
};
}