forked from colonelpanic/dotfiles
40 lines
734 B
Nix
40 lines
734 B
Nix
{ pkgs, ... }:
|
|
{
|
|
security.sudo.wheelNeedsPassword = false;
|
|
users.extraUsers = let
|
|
extraGroups = [
|
|
"audio"
|
|
"adbusers"
|
|
"disk"
|
|
"docker"
|
|
"networkmanager"
|
|
"plugdev"
|
|
"systemd-journal"
|
|
"video"
|
|
"wheel"
|
|
];
|
|
userDefaults = {
|
|
inherit extraGroups;
|
|
group = "users";
|
|
isNormalUser = true;
|
|
createHome = true;
|
|
shell = pkgs.zsh;
|
|
};
|
|
in {
|
|
imalison = userDefaults // {
|
|
name = "imalison";
|
|
uid = 1000;
|
|
home = "/home/imalison";
|
|
shell = pkgs.zsh;
|
|
};
|
|
kat = userDefaults // {
|
|
name = "kat";
|
|
uid = 1001;
|
|
home = "/home/kat";
|
|
shell = pkgs.zsh;
|
|
};
|
|
};
|
|
|
|
nix.trustedUsers = ["imalison" "kat"];
|
|
}
|