feat(users): use password files
This commit is contained in:
parent
acc8fa2d71
commit
91ce253aa3
5 changed files with 44 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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 [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue