{ config, lib, pkgs, ... }: { imports = [ ../modules/backup-server.nix ../modules/desktop.nix ../modules/ssh.nix ../lilac.nix ]; networking = { hostName = "backup"; networkmanager.enable = true; firewall = { enable = true; allowedUDPPorts = [ 51820 ]; trustedInterfaces = [ "wg0" ]; }; wireguard.interfaces."wg0" = { ips = [ "10.0.0.4/32" ]; generatePrivateKeyFile = true; privateKeyFile = "/var/lib/wireguard/wg0.key"; peers = [{ publicKey = "Tst6SiqoGLSoOAF9l5vT2vvR2RGJ/mFcoBL3BL5n90k="; allowedIPs = [ "10.0.0.0/24" ]; endpoint = "216.128.177.13:51820"; persistentKeepalive = 25; }]; }; }; time.timeZone = "America/Winnipeg"; systemd.sleep.settings.Sleep = { AllowSuspend = "no"; AllowHibernation = "no"; AllowHybridSleep = "no"; AllowSuspendThenHibernate = "no"; }; nixpkgs.config.allowUnfree = true; nix.settings.experimental-features = [ "nix-command" "flakes" ]; system.stateVersion = "26.05"; boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.kernelPackages = pkgs.linuxPackages_latest; fileSystems."/" = { device = "/dev/disk/by-uuid/61b493e0-8c91-b7d1-4e336da06ff0"; fsType = "ext4"; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/E157-E223"; fsType = "vfat"; options = [ "fmask=0077" "dmask=0077" ]; }; swapDevices = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }