2023-12-23 02:33:26 -05:00
|
|
|
{config, ...}: {
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
|
|
|
../../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-27 01:59:28 -05:00
|
|
|
./modules/borgbackup.nix
|
2023-12-26 17:10:10 -05:00
|
|
|
./modules/minecraft.nix
|
2023-12-23 02:33:26 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
vars = {
|
|
|
|
user = "matt";
|
|
|
|
hostName = "servivi";
|
|
|
|
};
|
|
|
|
|
2023-12-29 16:51:52 -05:00
|
|
|
users.users = {
|
|
|
|
${config.vars.user} = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
"adm"
|
|
|
|
];
|
|
|
|
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE39uk52+NIDLdHeoSHIEsOUUFRzj06AGn09z4TUOYm matt@OP9"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICr2+CpqXNMLsjgbrYyIwTKhlVSiIYol1ghBPzLmUpKl matt@binto"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJGbLu+Gb7PiyNgNXMHemaQLnKixebx1/4cdJGna9OQp matt@wim"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
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 = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGOujvC5JLnyjqD1bzl/H0256Gxw/biu7spIHy3YJiDL root@oksys"
|
|
|
|
];
|
|
|
|
};
|
2023-12-23 02:33:26 -05:00
|
|
|
};
|
2023-12-29 16:51:52 -05:00
|
|
|
|
2023-12-23 02:33:26 -05:00
|
|
|
home-manager.users.${config.vars.user} = {
|
|
|
|
imports = [];
|
|
|
|
|
|
|
|
# No touchy
|
|
|
|
home.stateVersion = "24.05";
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
inherit (config.vars) hostName;
|
|
|
|
resolvconf.enable = true;
|
|
|
|
firewall.enable = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "America/Montreal";
|
|
|
|
|
|
|
|
# No touchy
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
}
|