add user conf and split some configs

This commit is contained in:
Satria 2026-02-01 18:01:09 +07:00
commit 6d4453b618
6 changed files with 52 additions and 16 deletions

23
modules/system/user.nix Normal file
View file

@ -0,0 +1,23 @@
{ pkgs, username, ... }: {
users = {
users."${username}" = {
linger = true;
isNormalUser = true;
description = "${username}";
initialPassword = "${username}";
shell = pkgs.zsh;
extraGroups = [
"networkmanager"
"wheel"
"dialout"
"libvirtd"
"docker"
"input"
"uinput"
"ydotool"
"adbusers"
"kvm"
];
};
};
}