add different passwords per-host
This commit is contained in:
parent
2ecb47c6a9
commit
569518fa7c
1 changed files with 47 additions and 11 deletions
|
|
@ -2,17 +2,21 @@
|
|||
{
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
users = {
|
||||
root.hashedPasswordFile = config.age.secrets."password.age".path;
|
||||
quadradical = {
|
||||
isNormalUser = true;
|
||||
hashedPasswordFile = config.age.secrets."password.age".path;
|
||||
description = "QuadRadical";
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
];
|
||||
users =
|
||||
let
|
||||
password = config.age.secrets."password-${config.networking.hostName}.age".path;
|
||||
in
|
||||
{
|
||||
root.hashedPasswordFile = password;
|
||||
quadradical = {
|
||||
isNormalUser = true;
|
||||
hashedPasswordFile = password;
|
||||
description = "QuadRadical";
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue