v1
This commit is contained in:
parent
62df62c3aa
commit
db11846811
27 changed files with 887 additions and 64 deletions
38
modules/system/user.nix
Normal file
38
modules/system/user.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.xyno.system.user;
|
||||
in
|
||||
{
|
||||
options.xyno.system.user.enable = lib.mkEnableOption "enable a user with xynos config";
|
||||
options.xyno.system.user.name = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "xyno";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.homeBinInPath = true;
|
||||
users.users.${cfg.name} = {
|
||||
isNormalUser = true;
|
||||
uid = 1000;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"cdrom"
|
||||
"networkmanager"
|
||||
"video"
|
||||
"netdev"
|
||||
"plugdev"
|
||||
"dialout"
|
||||
"tape"
|
||||
"uucp"
|
||||
"wireshark"
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue