mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-19 10:47:01 -04:00
really big refactor
This commit is contained in:
parent
1d4904a4c9
commit
375a1b2e89
20 changed files with 188 additions and 151 deletions
24
common/systemModules/sops.nix
Normal file
24
common/systemModules/sops.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ NAME }: { config, inputs, ... }: {
|
||||
imports = [
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
];
|
||||
sops = {
|
||||
defaultSopsFile = ../../secrets.yaml;
|
||||
defaultSopsFormat = "yaml";
|
||||
age = {
|
||||
keyFile = "/home/${NAME}/.config/sops/age/keys.txt";
|
||||
};
|
||||
secrets = {
|
||||
password = {
|
||||
neededForUsers = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
users = {
|
||||
users = {
|
||||
"${NAME}" = {
|
||||
hashedPasswordFile = config.sops.secrets.password.path;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue