more secrets config

This commit is contained in:
serenity-F 2025-03-08 22:52:26 +10:00
parent 997c695f9e
commit 65e124dc99

View file

@ -1,7 +1,26 @@
{ pkgs, ... }:
{ pkgs, config, inputs, flakePath, disksPath, primaryUser, homeDir, ... }:
{
imports = [ inputs.sops-nix.nixosModules.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" = { };
};
};
}