From 29a224e6bd46f04587a443ee1753773d3ec048f5 Mon Sep 17 00:00:00 2001 From: lucy Date: Wed, 21 Oct 2026 21:27:32 +0200 Subject: [PATCH] fix typos --- modules/default.nix | 2 +- modules/hosts/nerv/hardware-configuration.nix | 68 ++++++++++--------- 2 files changed, 37 insertions(+), 33 deletions(-) diff --git a/modules/default.nix b/modules/default.nix index dcd533a..41e0d23 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -21,7 +21,6 @@ let tlp user zsh - /etc/nixos/hardware-configuration.nix ]; in { @@ -30,6 +29,7 @@ in with self.nixosModules; [ nvidia + nerv ] ++ mods; }; diff --git a/modules/hosts/nerv/hardware-configuration.nix b/modules/hosts/nerv/hardware-configuration.nix index ca77fe4..c2f03d2 100644 --- a/modules/hosts/nerv/hardware-configuration.nix +++ b/modules/hosts/nerv/hardware-configuration.nix @@ -1,42 +1,46 @@ # 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. -{ ... }: +{ lib, config, ... }: { - flake.nixosModules.nerv = { + flake.nixosModules.nerv = { config, ... }: { + config = { + dualBoot = true; + networking.hostName = "nerv"; - boot.initrd.availableKernelModules = [ - "nvme" - "xhci_pci" - "ahci" - "usbhid" - "usb_storage" - "sd_mod" - ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; - - fileSystems."/" = { - device = "/dev/disk/by-uuid/48badf37-8adb-48d0-b861-fbf71cbaddd7"; - fsType = "xfs"; - }; - - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/DC66-ACA6"; - fsType = "vfat"; - options = [ - "fmask=0077" - "dmask=0077" + boot.initrd.availableKernelModules = [ + "nvme" + "xhci_pci" + "ahci" + "usbhid" + "usb_storage" + "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/48badf37-8adb-48d0-b861-fbf71cbaddd7"; + fsType = "xfs"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/DC66-ACA6"; + fsType = "vfat"; + options = [ + "fmask=0077" + "dmask=0077" + ]; + }; + + swapDevices = [ + { device = "/dev/disk/by-uuid/3b0e79c9-e3d8-4b58-99b4-63c98309ac85"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }; - - swapDevices = [ - { device = "/dev/disk/by-uuid/3b0e79c9-e3d8-4b58-99b4-63c98309ac85"; } - ]; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }; }