2023-12-01 14:12:33 -05:00
|
|
|
{config, ...}: {
|
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/tailscale.nix
|
|
|
|
|
2023-12-20 03:51:27 -05:00
|
|
|
./modules/blocky.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/unbound.nix
|
2023-11-28 21:41:52 -05:00
|
|
|
];
|
|
|
|
|
2023-12-01 14:12:33 -05:00
|
|
|
vars = {
|
|
|
|
user = "matt";
|
|
|
|
hostName = "oksys";
|
2023-12-23 16:11:23 -05:00
|
|
|
neovimIde = false;
|
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-24 16:15:19 -05:00
|
|
|
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE39uk52+NIDLdHeoSHIEsOUUFRzj06AGn09z4TUOYm matt@OP9"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICr2+CpqXNMLsjgbrYyIwTKhlVSiIYol1ghBPzLmUpKl matt@binto"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJGbLu+Gb7PiyNgNXMHemaQLnKixebx1/4cdJGna9OQp matt@wim"
|
|
|
|
];
|
2023-11-28 21:41:52 -05:00
|
|
|
};
|
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 = {
|
2023-12-20 03:52:42 -05:00
|
|
|
inherit (config.vars) hostName;
|
|
|
|
resolvconf = {
|
2023-11-28 21:41:52 -05:00
|
|
|
enable = true;
|
2023-12-20 03:52:42 -05:00
|
|
|
extraConfig = ''
|
|
|
|
name_servers='1.0.0.1'
|
|
|
|
'';
|
2023-11-28 21:41:52 -05:00
|
|
|
};
|
|
|
|
firewall.enable = false;
|
|
|
|
};
|
|
|
|
|
2023-12-20 03:54:31 -05:00
|
|
|
services = {
|
|
|
|
openssh = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
PasswordAuthentication = false;
|
|
|
|
PermitRootLogin = "no";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-11-28 21:41:52 -05:00
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "America/Montreal";
|
|
|
|
|
|
|
|
# No touchy
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
}
|