From 365e05bda19d4e721f633a2a1c9440ad3017598b Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Wed, 15 Feb 2023 21:19:56 +0100 Subject: [PATCH] liku dead, mini alive --- {liku => mini}/configuration.nix | 4 ++-- {liku => mini}/hardware-configuration.nix | 16 +++++----------- 2 files changed, 7 insertions(+), 13 deletions(-) rename {liku => mini}/configuration.nix (87%) rename {liku => mini}/hardware-configuration.nix (55%) diff --git a/liku/configuration.nix b/mini/configuration.nix similarity index 87% rename from liku/configuration.nix rename to mini/configuration.nix index 3278021..6cf1e4a 100644 --- a/liku/configuration.nix +++ b/mini/configuration.nix @@ -15,6 +15,6 @@ ]; # host name & id - networking.hostName = "liku"; - networking.hostId = "ad1d2150"; + networking.hostName = "mini"; + networking.hostId = "db461356"; } diff --git a/liku/hardware-configuration.nix b/mini/hardware-configuration.nix similarity index 55% rename from liku/hardware-configuration.nix rename to mini/hardware-configuration.nix index b5c78cb..e62774c 100644 --- a/liku/hardware-configuration.nix +++ b/mini/hardware-configuration.nix @@ -8,29 +8,23 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; + boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/D95E-E4E3"; - fsType = "vfat"; - }; - - fileSystems."/boot-fallback" = - { device = "/dev/disk/by-uuid/D95F-2A39"; + { device = "/dev/disk/by-uuid/4FD5-6BF5"; fsType = "vfat"; }; swapDevices = [ ]; # Enables DHCP on the right ethernet interface. - networking.interfaces.enp3s0.useDHCP = true; + networking.interfaces.eno1.useDHCP = true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; # high-resolution display hardware.video.hidpi.enable = lib.mkDefault true; }