From f6a59edbedcdc9eb1fd8c6e96ed2ffbb7746bd94 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Mon, 7 Oct 2024 14:21:31 +0200 Subject: [PATCH] style: format all --- ahrc-laptop/hardware-configuration.nix | 51 +++++++++++------------ ahrc-pc/hardware-configuration.nix | 56 +++++++++++++------------- 2 files changed, 54 insertions(+), 53 deletions(-) diff --git a/ahrc-laptop/hardware-configuration.nix b/ahrc-laptop/hardware-configuration.nix index 68ba715..c9b3904 100644 --- a/ahrc-laptop/hardware-configuration.nix +++ b/ahrc-laptop/hardware-configuration.nix @@ -1,45 +1,46 @@ { config, lib, pkgs, modulesPath, ... }: { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = + [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - boot.initrd.luks.devices.crypted.device = "/dev/disk/by-uuid/6ee3bc81-e827-4b53-9655-8acff61dc369"; + boot.initrd.luks.devices.crypted.device = + "/dev/disk/by-uuid/6ee3bc81-e827-4b53-9655-8acff61dc369"; - fileSystems."/" = - { device = "/dev/disk/by-uuid/84df99b4-ba9f-418b-9b79-c015ed17ed30"; - fsType = "xfs"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/84df99b4-ba9f-418b-9b79-c015ed17ed30"; + fsType = "xfs"; + }; - fileSystems."/var" = - { device = "/dev/disk/by-uuid/7ea116a5-b910-450b-aeeb-d006b820be92"; - fsType = "ext4"; - }; + fileSystems."/var" = { + device = "/dev/disk/by-uuid/7ea116a5-b910-450b-aeeb-d006b820be92"; + fsType = "ext4"; + }; - fileSystems."/home" = - { device = "/dev/disk/by-uuid/0c4f356b-b738-4c63-915a-ef82dd59c01e"; - fsType = "btrfs"; - }; + fileSystems."/home" = { + device = "/dev/disk/by-uuid/0c4f356b-b738-4c63-915a-ef82dd59c01e"; + fsType = "btrfs"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/58CB-B4D3"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/58CB-B4D3"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; - swapDevices = [ { + swapDevices = [{ device = "/swapfile"; size = 8 * 1024; - } ]; + }]; networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.cpu.intel.updateMicrocode = + lib.mkDefault config.hardware.enableRedistributableFirmware; } diff --git a/ahrc-pc/hardware-configuration.nix b/ahrc-pc/hardware-configuration.nix index 6e8891a..661aa9d 100644 --- a/ahrc-pc/hardware-configuration.nix +++ b/ahrc-pc/hardware-configuration.nix @@ -1,48 +1,48 @@ { config, lib, pkgs, modulesPath, ... }: { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = + [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/6371008b-3551-4dd6-8429-9f1d07275c74"; - fsType = "xfs"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/6371008b-3551-4dd6-8429-9f1d07275c74"; + fsType = "xfs"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/7912-C8B9"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/7912-C8B9"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; - fileSystems."/var" = - { device = "/dev/disk/by-uuid/893e72c7-c904-43ea-b5ee-e1cea18b8268"; - fsType = "ext4"; - }; + fileSystems."/var" = { + device = "/dev/disk/by-uuid/893e72c7-c904-43ea-b5ee-e1cea18b8268"; + fsType = "ext4"; + }; - fileSystems."/home" = - { device = "/dev/disk/by-uuid/329a472f-945b-49da-b840-bc2fb37d2e03"; - fsType = "btrfs"; - }; + fileSystems."/home" = { + device = "/dev/disk/by-uuid/329a472f-945b-49da-b840-bc2fb37d2e03"; + fsType = "btrfs"; + }; - fileSystems."/mnt/inthdd" = - { device = "/dev/disk/by-uuid/2f7d6ae6-acda-410e-9c02-992eb64a8c7f"; - fsType = "ext4"; - }; + fileSystems."/mnt/inthdd" = { + device = "/dev/disk/by-uuid/2f7d6ae6-acda-410e-9c02-992eb64a8c7f"; + fsType = "ext4"; + }; - swapDevices = [ { + swapDevices = [{ device = "/swapfile"; size = 8 * 1024; - } ]; + }]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.cpu.amd.updateMicrocode = + lib.mkDefault config.hardware.enableRedistributableFirmware; networking.interfaces.enp42s0.wakeOnLan.enable = true; }