tailscale ig
This commit is contained in:
parent
cd0f907613
commit
cef112b672
6 changed files with 60 additions and 27 deletions
|
|
@ -10,6 +10,7 @@
|
|||
}:
|
||||
|
||||
{
|
||||
|
||||
nix.settings.experimental-features = [
|
||||
"flakes"
|
||||
"nix-command"
|
||||
|
|
@ -17,7 +18,7 @@
|
|||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./system
|
||||
./user/marty.nix
|
||||
./user
|
||||
|
||||
];
|
||||
# programs.walker.enable = true;
|
||||
|
|
|
|||
|
|
@ -21,5 +21,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
main-user = {
|
||||
userName = "marty";
|
||||
shell = pkgs.fish;
|
||||
};
|
||||
|
||||
imports = [ ./hardware.nix ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,6 +80,8 @@
|
|||
#
|
||||
home.sessionVariables = {
|
||||
EDITOR = "codium";
|
||||
GTK_THEME = "Adwaita:dark";
|
||||
TERM = "xterm-kitty";
|
||||
};
|
||||
|
||||
development = {
|
||||
|
|
|
|||
|
|
@ -9,6 +9,11 @@
|
|||
trustedInterfaces = [ "tailscale0" ];
|
||||
};
|
||||
};
|
||||
services = {
|
||||
tailscale = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
hardware = {
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
|
|
|
|||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue