2023-12-01 14:12:33 -05:00
|
|
|
{config, ...}: {
|
2023-11-28 21:41:52 -05:00
|
|
|
imports = [
|
2023-11-28 21:43:26 -05:00
|
|
|
#./hardware-configuration.nix
|
|
|
|
|
|
|
|
../../modules/tailscale.nix
|
|
|
|
|
2023-12-03 02:24:11 -05:00
|
|
|
./modules/caddy.nix
|
2023-11-28 21:43:26 -05:00
|
|
|
./modules/headscale.nix
|
2023-12-03 02:24:11 -05:00
|
|
|
./modules/pihole.nix
|
|
|
|
./modules/unbound.nix
|
2023-11-28 21:41:52 -05:00
|
|
|
];
|
|
|
|
|
2023-12-01 14:12:33 -05:00
|
|
|
vars = {
|
|
|
|
user = "matt";
|
|
|
|
hostName = "oksys";
|
2023-11-28 21:41:52 -05:00
|
|
|
};
|
|
|
|
|
2023-12-01 14:12:33 -05:00
|
|
|
users.users.${config.vars.user} = {
|
2023-11-28 21:41:52 -05:00
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"adm"
|
|
|
|
];
|
|
|
|
};
|
2023-12-01 14:12:33 -05:00
|
|
|
home-manager.users.${config.vars.user} = {
|
|
|
|
imports = [];
|
2023-11-28 21:41:52 -05:00
|
|
|
|
2023-12-01 14:12:33 -05:00
|
|
|
# No touchy
|
|
|
|
home.stateVersion = "24.05";
|
2023-11-28 21:41:52 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
networkmanager = {
|
2023-12-01 14:12:33 -05:00
|
|
|
inherit (config.vars) hostName;
|
2023-11-28 21:41:52 -05:00
|
|
|
enable = true;
|
|
|
|
wifi.backend = "wpa_supplicant";
|
|
|
|
};
|
|
|
|
firewall.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "America/Montreal";
|
|
|
|
|
|
|
|
# No touchy
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
}
|