From 217e7b0f063219d2fdf6b12c1932ecdc05ae6860 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 22 Jun 2023 07:46:53 -0400 Subject: [PATCH] hardware-configuration: Undo formatting To make life simpler, not modifying the hardware-configuration.nix in any way makes it easier to see git diffs. --- src/laptop.nix | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/src/laptop.nix b/src/laptop.nix index dfdf9c88..cbc25b01 100644 --- a/src/laptop.nix +++ b/src/laptop.nix @@ -1,28 +1,26 @@ -{ config -, lib -, modulesPath -, ... -}: { - imports = [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = { - device = "/dev/disk/by-label/nixos"; - fsType = "btrfs"; - }; + fileSystems."/" = + { device = "/dev/disk/by-label/nixos"; + fsType = "btrfs"; + }; boot.initrd.luks.devices."root".device = "/dev/disk/by-label/nixos-luks"; - fileSystems."/boot" = { - device = "/dev/disk/by-label/boot"; - fsType = "vfat"; - }; + fileSystems."/boot" = + { device = "/dev/disk/by-label/boot"; + fsType = "vfat"; + }; swapDevices = [ ];