feat(users): use password files

This commit is contained in:
Infinidoge 2022-04-21 01:06:43 -04:00
parent acc8fa2d71
commit 91ce253aa3
5 changed files with 44 additions and 5 deletions

View file

@ -1,6 +1,7 @@
{ lib, ... }: {
users.users.root.hashedPassword =
"PASSWORD SET IN THE FUTURE";
{ lib, config, self, ... }: {
age.secrets.root-password.file = "${self}/secrets/root-password.age";
users.users.root.passwordFile = config.age.secrets.root-password.path;
home-manager.users.root = { suites, profiles, ... }: {
imports = lib.lists.flatten [