2022-01-02 21:22:05 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../configuration/proxmox-vm
|
2024-03-02 16:28:45 +01:00
|
|
|
./firmware.nix
|
2022-01-02 21:55:09 +01:00
|
|
|
./mixcloud.nix
|
2023-02-18 10:58:43 +01:00
|
|
|
./syncthing.nix
|
2024-03-02 16:28:45 +01:00
|
|
|
./users.nix
|
2022-01-02 21:22:05 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
boot.loader.grub.version = 2;
|
|
|
|
boot.loader.grub.device = "/dev/vda";
|
|
|
|
|
|
|
|
networking.hostName = "storage-2";
|
|
|
|
|
|
|
|
networking.useDHCP = false;
|
|
|
|
networking.interfaces.ens19.ipv4.addresses = [ { address = "192.168.10.35"; prefixLength = 24; } ];
|
|
|
|
networking.interfaces.ens18.ipv6.addresses = [ { address = "2001:638:904:ffc0::4"; prefixLength = 64; } ];
|
|
|
|
networking.defaultGateway = { address = "192.168.10.1"; interface = "ens19"; };
|
|
|
|
networking.defaultGateway6 = { address = "2001:638:904:ffc0::1"; interface = "ens18"; };
|
|
|
|
networking.nameservers = [ "2001:638:904:ffcc::3" "2001:638:904:ffcc::4" "141.24.40.3" "141.24.40.4" ];
|
|
|
|
|
2022-01-02 21:55:09 +01:00
|
|
|
services.nginx.enable = true;
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
|
2024-02-18 16:47:54 +01:00
|
|
|
clerie.nixfiles.system-auto-upgrade = {
|
|
|
|
allowReboot = true;
|
|
|
|
autoUpgrade = true;
|
|
|
|
};
|
|
|
|
|
2022-01-02 21:22:05 +01:00
|
|
|
clerie.monitoring = {
|
|
|
|
enable = true;
|
|
|
|
id = "209";
|
|
|
|
pubkey = "j48FqhMyPo7PG1uxQip2aCM9l91UNtACAIv7PanMFk8=";
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "22.05";
|
|
|
|
}
|