tailscale ig
This commit is contained in:
parent
cd0f907613
commit
cef112b672
6 changed files with 60 additions and 27 deletions
46
user/default.nix
Normal file
46
user/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue