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 ];
|
imports = [ inputs.sops-nix.nixosModules.sops ];
|
||||||
|
|
||||||
|
## Packages used in sops-nix setup
|
||||||
environment = { systemPackages = with pkgs; [ age age-keygen sops ]; };
|
environment = { systemPackages = with pkgs; [ age age-keygen sops ]; };
|
||||||
|
|
||||||
## Sops-nix config
|
## Sops-nix config
|
||||||
sops = {
|
sops = {
|
||||||
defaultSopsFile = ./secrets.yaml; # default sops file
|
defaultSopsFile = ./secrets.yaml; # default secrets file
|
||||||
defaultSopsFormat = "yaml"; # yaml for ease of use
|
defaultSopsFormat = "yaml"; # .yaml format - ease of use
|
||||||
age.keyFile = "${homeDir}/.config/sops/age/keys.txt"; # keyfile location
|
age = {
|
||||||
|
keyFile = "${homeDir}/.config/sops/age/keys.txt"; # keyfile location
|
||||||
generateKey = true; # generate a new key if the one above is missing
|
generateKey = true; # generate a new key if the one above is missing
|
||||||
|
};
|
||||||
|
|
||||||
|
## List of secrets retrieved from secrets.yaml by sops-nix
|
||||||
secrets = {
|
secrets = {
|
||||||
|
|
||||||
loginPassword = { };
|
loginPassword = { };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue