more secrets config
This commit is contained in:
parent
997c695f9e
commit
65e124dc99
1 changed files with 20 additions and 1 deletions
|
|
@ -1,7 +1,26 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, config, inputs, flakePath, disksPath, primaryUser, homeDir, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
imports = [ inputs.sops-nix.nixosModules.sops ];
|
||||||
|
|
||||||
environment = { systemPackages = with pkgs; [ age sops ]; };
|
environment = { systemPackages = with pkgs; [ age 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
|
||||||
|
# move this to a separate private repo directory
|
||||||
|
|
||||||
|
secrets = {
|
||||||
|
|
||||||
|
example_key = { };
|
||||||
|
|
||||||
|
"example_service/example_subdir/example_secret" = { };
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue