2024-01-09 13:13:04 -05:00
|
|
|
{config, ...}: let
|
|
|
|
inherit (config.vars) mainUser hostName;
|
|
|
|
in {
|
2023-12-23 02:33:26 -05:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
2024-03-28 13:10:05 -04:00
|
|
|
../../modules/arion
|
2023-12-23 02:33:26 -05:00
|
|
|
../../modules/kmscon.nix
|
2023-12-27 11:39:38 -05:00
|
|
|
../../modules/sshd.nix
|
2023-12-23 02:33:26 -05:00
|
|
|
../../modules/tailscale.nix
|
2023-12-26 00:48:43 -05:00
|
|
|
|
|
|
|
./modules/binary-cache.nix
|
2023-12-26 17:10:10 -05:00
|
|
|
./modules/minecraft.nix
|
2024-03-01 18:20:15 -05:00
|
|
|
./modules/nfs.nix
|
2024-06-28 17:43:43 -04:00
|
|
|
./modules/steam-servers
|
2023-12-23 02:33:26 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
vars = {
|
2024-01-09 13:13:04 -05:00
|
|
|
mainUser = "matt";
|
2023-12-23 02:33:26 -05:00
|
|
|
hostName = "servivi";
|
2024-01-24 18:39:18 -05:00
|
|
|
promptMainColor = "blue";
|
2023-12-23 02:33:26 -05:00
|
|
|
};
|
|
|
|
|
2023-12-29 16:51:52 -05:00
|
|
|
users.users = {
|
2024-01-09 13:13:04 -05:00
|
|
|
${mainUser} = {
|
2023-12-29 16:51:52 -05:00
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"adm"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-12-30 00:06:27 -05:00
|
|
|
# https://nixos.wiki/wiki/Distributed_build
|
2023-12-29 16:51:52 -05:00
|
|
|
nixremote = {
|
|
|
|
isNormalUser = true;
|
|
|
|
createHome = true;
|
|
|
|
home = "/var/lib/nixremote";
|
|
|
|
homeMode = "500";
|
|
|
|
|
|
|
|
openssh.authorizedKeys.keys = [
|
2024-05-17 16:13:27 -04:00
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGOujvC5JLnyjqD1bzl/H0256Gxw/biu7spIHy3YJiDL"
|
2023-12-29 16:51:52 -05:00
|
|
|
];
|
|
|
|
};
|
2023-12-23 02:33:26 -05:00
|
|
|
};
|
2023-12-29 16:51:52 -05:00
|
|
|
|
2024-01-09 13:13:04 -05:00
|
|
|
home-manager.users.${mainUser} = {
|
2023-12-23 02:33:26 -05:00
|
|
|
imports = [];
|
|
|
|
|
|
|
|
# No touchy
|
|
|
|
home.stateVersion = "24.05";
|
|
|
|
};
|
|
|
|
|
2024-03-28 13:10:05 -04:00
|
|
|
arion.enable = true;
|
|
|
|
|
2023-12-23 02:33:26 -05:00
|
|
|
networking = {
|
2024-01-09 13:13:04 -05:00
|
|
|
inherit hostName;
|
2023-12-23 02:33:26 -05:00
|
|
|
resolvconf.enable = true;
|
|
|
|
firewall.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "America/Montreal";
|
|
|
|
|
|
|
|
# No touchy
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
}
|