refactor *started*

This commit is contained in:
martyTF 2026-03-30 22:03:03 +02:00
parent d0413cb830
commit db2103a37d
103 changed files with 1008 additions and 786 deletions

47
modules/user/default.nix Normal file
View file

@ -0,0 +1,47 @@
{
config,
pkgs,
inputs,
lib,
...
}:
{
options = {
user = {
userName = lib.mkOption {
default = "marty";
description = ''
main user name
'';
};
shell = lib.mkOption {
default = pkgs.fish;
description = ''
main user shell
'';
};
};
};
config = {
users.users.${config.user.userName} = {
isNormalUser = true;
description = "${config.user.userName}";
extraGroups = [
"networkmanager"
"wheel"
"video"
"audio"
"render"
"docker"
];
shell = config.user.shell;
};
security.sudo = {
enable = true;
wheelNeedsPassword = true;
};
};
}