nixos-configs/devices/oksys/default.nix

56 lines
984 B
Nix
Raw Normal View History

{config, ...}: let
inherit (config.vars) mainUser hostName;
2024-01-22 11:09:37 -05:00
tailscaleNameservers =
config
.services
.headscale
.settings
.dns_config
.nameservers;
in {
2023-11-28 21:41:52 -05:00
imports = [
2023-12-20 04:00:02 -05:00
./hardware-configuration.nix
2023-11-28 21:43:26 -05:00
../../modules/sshd.nix
2023-11-28 21:43:26 -05:00
../../modules/tailscale.nix
./modules/blocky.nix
./modules/headscale
./modules/remote-builder.nix
2023-12-03 02:24:11 -05:00
./modules/unbound.nix
2023-11-28 21:41:52 -05:00
];
vars = {
mainUser = "matt";
hostName = "oksys";
2023-12-23 16:11:23 -05:00
neovimIde = false;
2023-11-28 21:41:52 -05:00
};
users.users.${mainUser} = {
2023-11-28 21:41:52 -05:00
isNormalUser = true;
extraGroups = [
"wheel"
"adm"
];
};
home-manager.users.${mainUser} = {
imports = [];
2023-11-28 21:41:52 -05:00
# No touchy
home.stateVersion = "24.05";
2023-11-28 21:41:52 -05:00
};
networking = {
inherit hostName;
resolvconf.enable = true;
2024-01-22 11:09:37 -05:00
nameservers = tailscaleNameservers ++ ["1.0.0.1"];
2023-11-28 21:41:52 -05:00
firewall.enable = false;
};
# Set your time zone.
time.timeZone = "America/Montreal";
# No touchy
system.stateVersion = "24.05";
}