From a128ade0e8a5d438e164f528f74d6bf4f22d647f Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Sun, 9 Jul 2023 08:25:22 -0700 Subject: [PATCH] Ran alejandra --- modules/desktop/sway/default.nix | 2 +- modules/hardware/tlp/default.nix | 1 - .../node/hardware-configuration.nix | 40 ++++++++++--------- systems/x86_64-linux/node/zfs.nix | 10 +++-- 4 files changed, 29 insertions(+), 24 deletions(-) diff --git a/modules/desktop/sway/default.nix b/modules/desktop/sway/default.nix index 1cbd441..d965654 100644 --- a/modules/desktop/sway/default.nix +++ b/modules/desktop/sway/default.nix @@ -73,7 +73,7 @@ in { enable = true; swaynag.enable = true; wrapperFeatures.gtk = true; # so that gtk works properly - systemd.enable = true; # needed this for screen sharing to work + systemd.enable = true; # needed this for screen sharing to work config = { inherit (terminal menu left right up down modifier); diff --git a/modules/hardware/tlp/default.nix b/modules/hardware/tlp/default.nix index f5b7b1b..22a4660 100644 --- a/modules/hardware/tlp/default.nix +++ b/modules/hardware/tlp/default.nix @@ -26,4 +26,3 @@ in { }; }; } - diff --git a/systems/x86_64-linux/node/hardware-configuration.nix b/systems/x86_64-linux/node/hardware-configuration.nix index f12a22b..c2f516a 100644 --- a/systems/x86_64-linux/node/hardware-configuration.nix +++ b/systems/x86_64-linux/node/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" "usb_storage" "usbhid" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod"]; + boot.initrd.kernelModules = []; + boot.kernelModules = ["kvm-amd"]; + boot.extraModulePackages = []; - fileSystems."/" = - { device = "/dev/disk/by-label/NIXROOT"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-label/NIXROOT"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-label/NIXBOOT"; - fsType = "vfat"; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-label/NIXBOOT"; + 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/systems/x86_64-linux/node/zfs.nix b/systems/x86_64-linux/node/zfs.nix index 33490cc..2ebbada 100644 --- a/systems/x86_64-linux/node/zfs.nix +++ b/systems/x86_64-linux/node/zfs.nix @@ -1,6 +1,8 @@ -{ config, pkgs, ... }: - { - boot.supportedFilesystems = [ "zfs" ]; - networking.hostId = "db616c9e"; + config, + pkgs, + ... +}: { + boot.supportedFilesystems = ["zfs"]; + networking.hostId = "db616c9e"; }