Set the user password from agenix

pull/1/head
Tudor Roman 2023-06-04 13:10:22 +02:00
parent f550c7983f
commit 54e46eaa21
2 changed files with 13 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ...}:
{ config, pkgs, lib, vars, ...}:
{
imports = [ ../_all ./hardware.nix ];
@ -40,6 +40,12 @@
'';
};
age.secrets.tudor-password = {
file = ../../secrets/ceres/tudor-password.age;
};
users.users.${vars.username}.passwordFile = config.age.secrets.tudor-password.path;
services.zfs.autoSnapshot.enable = true;
services.zfs.autoScrub.enable = true;
home-manager.users.tudor = ../../users/tudor/home.nix;

View File

@ -20,5 +20,11 @@
nativeSystemd = true;
};
age.secrets.tudor-password = {
file = ../../secrets/wsl2/tudor-password.age;
};
users.users.${vars.username}.passwordFile = config.age.secrets.tudor-password.path;
home-manager.users.tudor = ../../users/tudor/home.nix;
}