2023-06-24 23:09:01 +02:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./common.nix
|
|
|
|
./hardware/homeserver.nix
|
2023-07-01 15:08:00 +02:00
|
|
|
./persist/common.nix
|
2023-06-24 23:09:01 +02:00
|
|
|
../sets/meta/sysadmin.nix
|
|
|
|
../packages/vim/package.nix
|
2023-06-25 12:21:00 +02:00
|
|
|
../packages/nginx/homeserver.nix
|
|
|
|
../packages/syncthing/homeserver.nix
|
2023-06-25 17:10:38 +02:00
|
|
|
../packages/wireguard/package.nix
|
2023-06-25 19:49:13 +02:00
|
|
|
../packages/deluge/homeserver.nix
|
2023-06-24 23:09:01 +02:00
|
|
|
];
|
|
|
|
|
2023-06-25 12:21:00 +02:00
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
efi = {
|
|
|
|
canTouchEfiVariables = true;
|
|
|
|
};
|
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
efiSupport = true;
|
|
|
|
device = "nodev";
|
|
|
|
};
|
2023-06-24 23:09:01 +02:00
|
|
|
};
|
2023-06-25 12:21:00 +02:00
|
|
|
|
|
|
|
kernel = {
|
|
|
|
sysctl."net.ipv6.conf.eth0.disable_ipv6" = true;
|
2023-06-24 23:09:01 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
2023-06-25 12:21:00 +02:00
|
|
|
hostName = "homeserver";
|
|
|
|
enableIPv6 = false;
|
2023-06-24 23:09:01 +02:00
|
|
|
hostId = "95f846dc";
|
|
|
|
interfaces = {
|
|
|
|
eno1.ipv4.addresses = [{
|
|
|
|
address = "192.168.2.69";
|
|
|
|
prefixLength = 24;
|
|
|
|
}];
|
|
|
|
};
|
2023-06-25 12:21:00 +02:00
|
|
|
nameservers = [ "1.1.1.1" "8.8.8.8" ];
|
|
|
|
defaultGateway = "192.168.2.1";
|
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowedTCPPorts = [ 22 ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-25 12:23:16 +02:00
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
console.keyMap = "uk";
|
|
|
|
|
2023-06-25 12:21:00 +02:00
|
|
|
# To not mess up SSH sessions from weird terminals
|
2023-07-01 15:08:00 +02:00
|
|
|
environment.sessionVariables = {
|
2023-06-25 12:21:00 +02:00
|
|
|
TERM = "xterm";
|
2023-06-24 23:09:01 +02:00
|
|
|
};
|
|
|
|
}
|