diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-12-20 15:01:34 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-12-20 15:04:39 +0100 |
| commit | 6a718ca63338f13b2ae1ddf4b9d73d790c6a29d2 (patch) | |
| tree | e744b93c3f44911fcc8c837e43b9803b85f36475 /nixos/hardware | |
| parent | 28b72fa8565a80defc6eec8bb9eecd21691753ac (diff) | |
format nix files
Diffstat (limited to 'nixos/hardware')
| -rw-r--r-- | nixos/hardware/default.nix | 9 | ||||
| -rw-r--r-- | nixos/hardware/hardware-configuration.nix | 23 |
2 files changed, 16 insertions, 16 deletions
diff --git a/nixos/hardware/default.nix b/nixos/hardware/default.nix index 0e8dc15..0405ff4 100644 --- a/nixos/hardware/default.nix +++ b/nixos/hardware/default.nix @@ -1,7 +1,6 @@ -{ nixos-hardware, ... }: - -{ - imports = [ # Include the results of the hardware scan. +{nixos-hardware, ...}: { + imports = [ + # Include the results of the hardware scan. ./hardware-configuration.nix # Community-curated hardware configuration @@ -22,5 +21,5 @@ }; # faulty Intel CPU - boot.kernelParams = [ "i915.dc_enable=0" "intel_idle.max_cstate=1" ]; + boot.kernelParams = ["i915.dc_enable=0" "intel_idle.max_cstate=1"]; } diff --git a/nixos/hardware/hardware-configuration.nix b/nixos/hardware/hardware-configuration.nix index 77f7942..e876888 100644 --- a/nixos/hardware/hardware-configuration.nix +++ b/nixos/hardware/hardware-configuration.nix @@ -1,16 +1,18 @@ # 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") ]; - - boot.initrd.availableKernelModules = - [ "xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc" ]; - boot.initrd.kernelModules = [ "dm-snapshot" ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; + config, + lib, + modulesPath, + ... +}: { + imports = [(modulesPath + "/installer/scan/not-detected.nix")]; + + boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc"]; + boot.initrd.kernelModules = ["dm-snapshot"]; + boot.kernelModules = ["kvm-intel"]; + boot.extraModulePackages = []; fileSystems."/" = { device = "/dev/disk/by-uuid/f5809224-8478-474f-b25d-dde1ada37957"; @@ -27,8 +29,7 @@ fsType = "ext4"; }; - swapDevices = - [{ device = "/dev/disk/by-uuid/0cf1b50c-670c-4dc6-bb91-fc45d6148028"; }]; + swapDevices = [{device = "/dev/disk/by-uuid/0cf1b50c-670c-4dc6-bb91-fc45d6148028";}]; # 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 |
