From 43c4c6d39f99a4c4b8bbbc2c3e228c7be463e4f5 Mon Sep 17 00:00:00 2001 From: Mel Date: Mon, 30 Dec 2024 20:36:41 +0100 Subject: Move server from Hetzner to OVH Signed-off-by: Mel --- configuration/hardware.nix | 59 ++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 31 deletions(-) (limited to 'configuration/hardware.nix') diff --git a/configuration/hardware.nix b/configuration/hardware.nix index ed7c4a7..46b789f 100644 --- a/configuration/hardware.nix +++ b/configuration/hardware.nix @@ -1,42 +1,39 @@ -{ - config, - lib, - pkgs, - modulesPath, - ... -}: +# 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") - ]; + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; - boot.initrd.availableKernelModules = [ - "xhci_pci" - "virtio_scsi" - "sr_mod" - ]; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = { - device = "/dev/disk/by-uuid/d48dd0f5-a41c-47d4-a0b9-acfad95c8e99"; - fsType = "ext4"; - }; + fileSystems."/" = + { device = "/dev/disk/by-uuid/947307ee-6563-4d6d-a388-98e23bb48810"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/e685d09e-35bf-45f8-8178-ccf5731c5793"; + fsType = "ext4"; + }; - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/9506-1A24"; - fsType = "vfat"; - options = [ - "fmask=0077" - "dmask=0077" + swapDevices = + [ { device = "/dev/disk/by-uuid/920d8d4b-6d48-4063-b202-a80e2cd5f64f"; } ]; - }; - swapDevices = [ - { device = "/dev/disk/by-uuid/5097c4ba-3b7f-4cce-a674-9cedb3fbc052"; } - ]; + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking + # (the default) this is the recommended approach. When using systemd-networkd it's + # still possible to use this option, but it's recommended to use it in conjunction + # with explicit per-interface declarations with `networking.interfaces..useDHCP`. + networking.useDHCP = lib.mkDefault true; + # networking.interfaces.ens3.useDHCP = lib.mkDefault true; - nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; } -- cgit 1.4.1