Initial NixOS infra flake skeleton
This commit is contained in:
commit
9383d615d7
9 changed files with 267 additions and 0 deletions
15
modules/sops.nix
Normal file
15
modules/sops.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
# sops-nix reads secrets from YAML files in ./secrets
|
||||
# You will create these later.
|
||||
sops.defaultSopsFile = ../secrets/secrets.yaml;
|
||||
|
||||
# Where the age key lives on target machines
|
||||
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
|
||||
|
||||
# Good to have a dedicated secrets mount/dir
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/lib/sops-nix 0700 root root - -"
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue