♻️ [shared] Moved users config to base. Use password from Sops
This commit is contained in:
18
shared/base/modules/users.nix
Normal file
18
shared/base/modules/users.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{ config, systemConfig, ... }:
|
||||
let
|
||||
username = systemConfig.username;
|
||||
in
|
||||
{
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
users.${username} = {
|
||||
isNormalUser = true;
|
||||
hashedPasswordFile = config.sops.secrets.password-hash.path;
|
||||
description = username;
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"wheel"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user