Add secret handling
This commit is contained in:
17
nix/modules/home/secrets.nix
Normal file
17
nix/modules/home/secrets.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ inputs, config, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
];
|
||||
|
||||
sops = {
|
||||
defaultSopsFile = ../../secrets/secrets.yaml;
|
||||
defaultSopsFormat = "yaml";
|
||||
|
||||
age = {
|
||||
# This is the default location for the age key
|
||||
keyFile = "${config.home.homeDirectory}/.config/sops/age/keys.txt";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user