From 0182840f7dee9e9a6bd3dc9957c6ac8c8b3eac9d Mon Sep 17 00:00:00 2001 From: Alexander Kobjolke Date: Sun, 26 May 2024 11:51:57 +0200 Subject: [PATCH] chore(nix): Reformat code --- hosts/dregil/hardware-configuration.nix | 45 +++++++++++++++++++------ 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/hosts/dregil/hardware-configuration.nix b/hosts/dregil/hardware-configuration.nix index 8aba9e8..33d5559 100644 --- a/hosts/dregil/hardware-configuration.nix +++ b/hosts/dregil/hardware-configuration.nix @@ -1,13 +1,25 @@ # 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, ... }: +{ + config, + lib, + pkgs, + modulesPath, + ... +}: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = - [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.availableKernelModules = [ + "xhci_pci" + "thunderbolt" + "nvme" + "usb_storage" + "usbhid" + "sd_mod" + ]; boot.initrd.kernelModules = [ "dm-snapshot" "uas" @@ -27,26 +39,39 @@ keyFileSize = 4096; }; }; - boot.kernelModules = [ "kvm-intel" "nvidia" ]; + boot.kernelModules = [ + "kvm-intel" + "nvidia" + ]; boot.extraModulePackages = [ pkgs.linuxPackages.nvidia_x11 ]; boot.kernelParams = [ "module_blacklist=i915" ]; fileSystems."/" = { device = "/dev/disk/by-uuid/a88ac058-e704-419e-ba7d-1d0ff4b6f654"; fsType = "btrfs"; - options = [ "subvol=root" "compress=zstd" ]; + options = [ + "subvol=root" + "compress=zstd" + ]; }; fileSystems."/home" = { device = "/dev/disk/by-uuid/a88ac058-e704-419e-ba7d-1d0ff4b6f654"; fsType = "btrfs"; - options = [ "subvol=home" "compress=zstd" ]; + options = [ + "subvol=home" + "compress=zstd" + ]; }; fileSystems."/nix" = { device = "/dev/disk/by-uuid/a88ac058-e704-419e-ba7d-1d0ff4b6f654"; fsType = "btrfs"; - options = [ "subvol=nix" "compress=zstd" "noatime" ]; + options = [ + "subvol=nix" + "compress=zstd" + "noatime" + ]; }; fileSystems."/boot" = { @@ -54,8 +79,7 @@ fsType = "vfat"; }; - swapDevices = - [{ device = "/dev/disk/by-uuid/b8c224ad-095e-4a48-b5b2-a19451fdeb95"; }]; + swapDevices = [ { device = "/dev/disk/by-uuid/b8c224ad-095e-4a48-b5b2-a19451fdeb95"; } ]; # 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 @@ -67,8 +91,7 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - hardware.cpu.intel.updateMicrocode = - lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.nvidia = { nvidiaSettings = true;