From 0c4d9ea95f9a4da20bc844da22f8121dea7f0c38 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Thu, 4 Jul 2024 13:56:44 -0400 Subject: [PATCH] chore: format --- machines/oracle/hardware-configuration.nix | 20 ++++++---- .../thinkcentre/hardware-configuration.nix | 40 ++++++++++--------- user/environments/nixos-server/home.nix | 2 +- 3 files changed, 35 insertions(+), 27 deletions(-) diff --git a/machines/oracle/hardware-configuration.nix b/machines/oracle/hardware-configuration.nix index 25a81a4..729301c 100644 --- a/machines/oracle/hardware-configuration.nix +++ b/machines/oracle/hardware-configuration.nix @@ -1,14 +1,18 @@ -{ modulesPath, ... }: -{ - imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; +{modulesPath, ...}: { + imports = [(modulesPath + "/profiles/qemu-guest.nix")]; boot.loader.grub = { efiSupport = true; efiInstallAsRemovable = true; device = "nodev"; }; - fileSystems."/boot" = { device = "/dev/disk/by-uuid/97E5-76C2"; fsType = "vfat"; }; - boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ]; - boot.initrd.kernelModules = [ "nvme" ]; - fileSystems."/" = { device = "/dev/mapper/centosvolume-root"; fsType = "xfs"; }; - + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/97E5-76C2"; + fsType = "vfat"; + }; + boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"]; + boot.initrd.kernelModules = ["nvme"]; + fileSystems."/" = { + device = "/dev/mapper/centosvolume-root"; + fsType = "xfs"; + }; } diff --git a/machines/thinkcentre/hardware-configuration.nix b/machines/thinkcentre/hardware-configuration.nix index 3a46158..f89fc77 100644 --- a/machines/thinkcentre/hardware-configuration.nix +++ b/machines/thinkcentre/hardware-configuration.nix @@ -1,29 +1,33 @@ # 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 + "/installer/scan/not-detected.nix") - ]; + config, + lib, + pkgs, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"]; + boot.initrd.kernelModules = []; + boot.kernelModules = []; + boot.extraModulePackages = []; - fileSystems."/" = - { device = "/dev/disk/by-uuid/2b1793d6-feff-48df-9180-03e8c2bef7bf"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/2b1793d6-feff-48df-9180-03e8c2bef7bf"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/2082-08EF"; - fsType = "vfat"; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/2082-08EF"; + fsType = "vfat"; + }; - swapDevices = [ ]; + swapDevices = []; # 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 diff --git a/user/environments/nixos-server/home.nix b/user/environments/nixos-server/home.nix index ffd76fb..92f1dd7 100644 --- a/user/environments/nixos-server/home.nix +++ b/user/environments/nixos-server/home.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: { +{pkgs, ...}: { imports = [ ../../modules/git.nix ../../modules/zsh.nix