Set lillian's password declaratively on EDI

This commit is contained in:
Lillian Violet 2024-02-21 11:21:08 +01:00
parent 23e5969c3f
commit a3961b0bde
2 changed files with 12 additions and 3 deletions

View file

@ -30,6 +30,15 @@
./hardware-configuration.nix
];
sops.defaultSopsFile = ./secrets/sops.yaml;
sops.age.keyFile = ../../../../../../var/secrets/keys.txt;
sops.secrets."lillian-password".neededForUsers = true;
users.users.lillian = {
hashedPasswordFile = config.sops.secrets."lillian-password".path;
};
home-manager = {
extraSpecialArgs = {inherit inputs outputs;};
users = {