remove unneded options, add users.nix

This commit is contained in:
Charlie Root 2024-10-27 10:47:44 +01:00
commit 1bb25bda0e
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
4 changed files with 34 additions and 30 deletions

22
modules/other/users.nix Normal file
View file

@ -0,0 +1,22 @@
{config, ...}: let
inherit (config.meta.mainUser) username;
in {
users = {
mutableUsers = false;
users = {
${username} = {
isNormalUser = true;
extraGroups = [
"wheel"
"networking"
"video"
"networkmanager"
"audio"
"nix"
];
hashedPasswordFile = "/etc/passwords/cr";
};
root.hashedPasswordFile = "/persist/passwords/root";
};
};
}