more secrets config
This commit is contained in:
parent
ddd394a607
commit
62c9909d3d
1 changed files with 8 additions and 4 deletions
|
|
@ -4,15 +4,19 @@
|
|||
|
||||
imports = [ inputs.sops-nix.nixosModules.sops ];
|
||||
|
||||
## Packages used in sops-nix setup
|
||||
environment = { systemPackages = with pkgs; [ age age-keygen sops ]; };
|
||||
|
||||
## Sops-nix config
|
||||
sops = {
|
||||
defaultSopsFile = ./secrets.yaml; # default sops file
|
||||
defaultSopsFormat = "yaml"; # yaml for ease of use
|
||||
age.keyFile = "${homeDir}/.config/sops/age/keys.txt"; # keyfile location
|
||||
generateKey = true; # generate a new key if the one above is missing
|
||||
defaultSopsFile = ./secrets.yaml; # default secrets file
|
||||
defaultSopsFormat = "yaml"; # .yaml format - ease of use
|
||||
age = {
|
||||
keyFile = "${homeDir}/.config/sops/age/keys.txt"; # keyfile location
|
||||
generateKey = true; # generate a new key if the one above is missing
|
||||
};
|
||||
|
||||
## List of secrets retrieved from secrets.yaml by sops-nix
|
||||
secrets = {
|
||||
|
||||
loginPassword = { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue