tailscale ig

This commit is contained in:
martyTF 2025-12-18 16:51:26 +01:00
parent cd0f907613
commit cef112b672
6 changed files with 60 additions and 27 deletions

46
user/default.nix Normal file
View file

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