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

View file

@ -10,6 +10,7 @@
}: }:
{ {
nix.settings.experimental-features = [ nix.settings.experimental-features = [
"flakes" "flakes"
"nix-command" "nix-command"
@ -17,7 +18,7 @@
imports = [ imports = [
# Include the results of the hardware scan. # Include the results of the hardware scan.
./system ./system
./user/marty.nix ./user
]; ];
# programs.walker.enable = true; # programs.walker.enable = true;

View file

@ -21,5 +21,10 @@
}; };
}; };
main-user = {
userName = "marty";
shell = pkgs.fish;
};
imports = [ ./hardware.nix ]; imports = [ ./hardware.nix ];
} }

View file

@ -80,6 +80,8 @@
# #
home.sessionVariables = { home.sessionVariables = {
EDITOR = "codium"; EDITOR = "codium";
GTK_THEME = "Adwaita:dark";
TERM = "xterm-kitty";
}; };
development = { development = {

View file

@ -9,6 +9,11 @@
trustedInterfaces = [ "tailscale0" ]; trustedInterfaces = [ "tailscale0" ];
}; };
}; };
services = {
tailscale = {
enable = true;
};
};
hardware = { hardware = {
bluetooth = { bluetooth = {
enable = true; enable = true;

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;
};
};
}

View file

@ -1,26 +0,0 @@
{
config,
pkgs,
inputs,
...
}:
{
users.users.marty = {
isNormalUser = true;
description = "marty";
extraGroups = [
"networkmanager"
"wheel"
"video"
"audio"
"render"
];
shell = pkgs.fish;
};
security.sudo = {
enable = true;
wheelNeedsPassword = true;
};
}