From 2ef56f1479e8b64fc656b29e89fbdec3969c8078 Mon Sep 17 00:00:00 2001 From: andromeda Date: Fri, 3 Apr 2026 21:26:04 +0200 Subject: tidy a bit --- modules/nixos/machines/109-199-104-83.nix | 56 +++++++++++++++++++------------ 1 file changed, 35 insertions(+), 21 deletions(-) (limited to 'modules/nixos/machines') diff --git a/modules/nixos/machines/109-199-104-83.nix b/modules/nixos/machines/109-199-104-83.nix index 998001c..e870690 100644 --- a/modules/nixos/machines/109-199-104-83.nix +++ b/modules/nixos/machines/109-199-104-83.nix @@ -1,25 +1,39 @@ -# Do not modify this file! It was generated by ‘nixos-generate-config’ -# and may be overwritten by future invocations. Please make changes -# to /etc/nixos/configuration.nix instead. -{ - config, - lib, - pkgs, - modulesPath, - ... -}: { - imports = [ - (modulesPath + "/profiles/qemu-guest.nix") - ]; +{modulesPath, ...}: { + system.stateVersion = "25.11"; + nix.settings.experimental-features = "flakes nix-command"; - boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"]; - boot.initrd.kernelModules = []; - boot.kernelModules = []; - boot.extraModulePackages = []; + # Hardware + imports = [(modulesPath + "/profiles/qemu-guest.nix")]; + fileSystems."/" = { + device = "/dev/sda1"; + fsType = "ext4"; + }; + boot.loader.grub.device = "/dev/sda"; + boot.loader.timeout = 30; + boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront"]; + boot.initrd.kernelModules = ["nvme"]; + boot.tmp.cleanOnBoot = true; - swapDevices = []; + zramSwap.enable = true; - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - - system.stateVersion = "26.05"; + # Networking + networking = { + useNetworkd = true; + usePredictableInterfaceNames = true; + }; + systemd.network = { + enable = true; + networks."40-wan" = { + matchConfig.Name = "enx0050565f4fff"; + address = ["2a02:c207:2299:8419::1/64" "109.199.104.83/20"]; + routes = [ + { + Gateway = "109.199.96.1"; + GatewayOnLink = true; + } + {Gateway = "fe80::1";} + ]; + dns = ["2020:fe::10" "9.9.9.10"]; + }; + }; } -- cgit v1.3