From 72d733ba7d2cfe8f04a480f1b7391aae82f00e51 Mon Sep 17 00:00:00 2001 From: Joshua Yuen Date: Sat, 12 Sep 2026 12:46:47 -0400 Subject: [PATCH] Format Nix files with nixfmt --- hosts/laptop/hardware.nix | 49 +++++++++++++++++++++++++-------------- modules/options/gpg.nix | 2 +- 2 files changed, 33 insertions(+), 18 deletions(-) diff --git a/hosts/laptop/hardware.nix b/hosts/laptop/hardware.nix index 31204ca..3ed78b3 100644 --- a/hosts/laptop/hardware.nix +++ b/hosts/laptop/hardware.nix @@ -1,32 +1,47 @@ # 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") - ]; + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = [ + "xhci_pci" + "thunderbolt" + "nvme" + "usb_storage" + "sd_mod" + ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/041a9bc5-aae2-44ec-bacf-7f6a08a696f9"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/041a9bc5-aae2-44ec-bacf-7f6a08a696f9"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/79D1-97BE"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; - - swapDevices = - [ { device = "/dev/disk/by-uuid/82b669f5-d624-4a29-bf18-dd8bc453f537"; } + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/79D1-97BE"; + fsType = "vfat"; + options = [ + "fmask=0077" + "dmask=0077" ]; + }; + + swapDevices = [ + { device = "/dev/disk/by-uuid/82b669f5-d624-4a29-bf18-dd8bc453f537"; } + ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; diff --git a/modules/options/gpg.nix b/modules/options/gpg.nix index 8b0e6fd..f4f2a68 100644 --- a/modules/options/gpg.nix +++ b/modules/options/gpg.nix @@ -16,4 +16,4 @@ with lib; description = "The key ID to sign with for git"; }; }; -} \ No newline at end of file +}