summaryrefslogtreecommitdiff
path: root/kusanagi/nixos/hardware-configuration.nix
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-01-10 18:38:38 +0100
committerAlex Auvolat <alex@adnab.me>2023-01-10 18:38:38 +0100
commitff9335738b44ae431963dbcd8ef398ceec76545c (patch)
tree2fb19df9a8f7a5531872d7bd35fbf04aa82eb6a7 /kusanagi/nixos/hardware-configuration.nix
parent4b3f3279dd67d454a832f43f55f6c412350e9236 (diff)
downloaduser-config-ff9335738b44ae431963dbcd8ef398ceec76545c.tar.gz
user-config-ff9335738b44ae431963dbcd8ef398ceec76545c.zip
add nixfmt and apply it everywhere
Diffstat (limited to 'kusanagi/nixos/hardware-configuration.nix')
-rw-r--r--kusanagi/nixos/hardware-configuration.nix44
1 files changed, 21 insertions, 23 deletions
diff --git a/kusanagi/nixos/hardware-configuration.nix b/kusanagi/nixos/hardware-configuration.nix
index e4827aa..e7fa542 100644
--- a/kusanagi/nixos/hardware-configuration.nix
+++ b/kusanagi/nixos/hardware-configuration.nix
@@ -4,39 +4,37 @@
{ 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/e3271725-effb-4b00-a5d4-8a7a64f55420";
+ boot.initrd.luks.devices.crypted.device =
+ "/dev/disk/by-uuid/e3271725-effb-4b00-a5d4-8a7a64f55420";
- fileSystems."/" =
- { device = "/dev/disk/by-uuid/2f606c6b-8009-4158-b367-2e0cf1a57ade";
- fsType = "ext4";
- };
+ fileSystems."/" = {
+ device = "/dev/disk/by-uuid/2f606c6b-8009-4158-b367-2e0cf1a57ade";
+ fsType = "ext4";
+ };
- fileSystems."/boot" =
- { device = "/dev/disk/by-uuid/0143-7D54";
- fsType = "vfat";
- };
+ fileSystems."/boot" = {
+ device = "/dev/disk/by-uuid/0143-7D54";
+ fsType = "vfat";
+ };
- fileSystems."/home" =
- { device = "/dev/disk/by-uuid/f955ce34-f25e-4abf-8732-bcf17465f78c";
- fsType = "ext4";
- };
+ fileSystems."/home" = {
+ device = "/dev/disk/by-uuid/f955ce34-f25e-4abf-8732-bcf17465f78c";
+ fsType = "ext4";
+ };
- swapDevices = [
- {
- device = "/dev/disk/by-uuid/c78cfb77-75ee-4aae-9b24-b91f8eebb7c2";
- }
- ];
+ swapDevices =
+ [{ device = "/dev/disk/by-uuid/c78cfb77-75ee-4aae-9b24-b91f8eebb7c2"; }];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
- hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+ hardware.cpu.intel.updateMicrocode =
+ lib.mkDefault config.hardware.enableRedistributableFirmware;
}