really big refactor

This commit is contained in:
sadan 2024-10-02 16:36:52 -04:00
parent 1d4904a4c9
commit 375a1b2e89
No known key found for this signature in database
20 changed files with 188 additions and 151 deletions

View 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;
};
};
};
}