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

@ -89,11 +89,12 @@ in
software.minipro.enable = true;
};
age.secrets.infinidoge-password.file = "${self}/secrets/infinidoge-password.age";
user = {
name = "infinidoge";
uid = 1000;
hashedPassword =
"PASSWORD SET IN THE FUTURE";
passwordFile = config.age.secrets.infinidoge-password.path;
description = "Infinidoge, primary user of the system";
group = "users";
isNormalUser = true;

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 [