From 9050e73d27b9b19cb4fbd866ee79a1c61de8e4ef Mon Sep 17 00:00:00 2001 From: Don Harper Date: Sun, 23 Feb 2025 22:47:34 -0600 Subject: [PATCH] task | formating updates --- hosts/book/hardware-configuration.nix | 28 +++++++++++++-------------- hosts/workstation/kmscon.nix | 12 ++++-------- hosts/workstation/systemd.nix | 4 +--- hosts/workstation/wine.nix | 6 ++---- 4 files changed, 21 insertions(+), 29 deletions(-) diff --git a/hosts/book/hardware-configuration.nix b/hosts/book/hardware-configuration.nix index beba79a..3bc27af 100644 --- a/hosts/book/hardware-configuration.nix +++ b/hosts/book/hardware-configuration.nix @@ -4,25 +4,24 @@ { 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" "sr_mod" "sdhci_pci" ]; + boot.initrd.availableKernelModules = + [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/e0e211d5-30a0-4b9e-b1ba-971cdd7a4d23"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/e0e211d5-30a0-4b9e-b1ba-971cdd7a4d23"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/6957-B177"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/6957-B177"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; swapDevices = [ ]; @@ -34,5 +33,6 @@ # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.cpu.intel.updateMicrocode = + lib.mkDefault config.hardware.enableRedistributableFirmware; } diff --git a/hosts/workstation/kmscon.nix b/hosts/workstation/kmscon.nix index 5a4a9ee..1e1f06f 100644 --- a/hosts/workstation/kmscon.nix +++ b/hosts/workstation/kmscon.nix @@ -2,20 +2,16 @@ with lib; let cfg = config.roles.kmscon; in { - options.roles.kmscon = { - enable = mkEnableOption "roles kmscon"; - }; + options.roles.kmscon = { enable = mkEnableOption "roles kmscon"; }; config = mkIf cfg.enable { services = { kmscon = { enable = true; - fonts = [ - { + fonts = [{ # name = "Source Code Pro"; name = "FiraCode Nerd Font Mono"; package = pkgs.nerd-fonts.fira-code; - } - ]; + }]; extraConfig = '' font-size=18 palette=custom @@ -31,7 +27,7 @@ in { palette-red=255, 149, 128 palette-white=248, 248, 242 palette-yellow=255, 255, 128 - ''; + ''; }; }; }; diff --git a/hosts/workstation/systemd.nix b/hosts/workstation/systemd.nix index e12d31e..f83ef11 100644 --- a/hosts/workstation/systemd.nix +++ b/hosts/workstation/systemd.nix @@ -50,9 +50,7 @@ in { }; check-nic = { description = "Adjust tailscale MTU based on location"; - unitConfig = { - Type = "simple"; - }; + unitConfig = { Type = "simple"; }; serviceConfig = { Type = "oneshot"; Environment = diff --git a/hosts/workstation/wine.nix b/hosts/workstation/wine.nix index b87ea67..274dd29 100644 --- a/hosts/workstation/wine.nix +++ b/hosts/workstation/wine.nix @@ -2,11 +2,9 @@ with lib; let cfg = config.roles.wine; in { - options.roles.wine = { - enable = mkEnableOption "roles wine"; - }; + options.roles.wine = { enable = mkEnableOption "roles wine"; }; config = mkIf cfg.enable { - home-manager.users.don.home.packages = with pkgs; [ + home-manager.users.don.home.packages = with pkgs; [ # wineWowPackages.stable wineWowPackages.waylandFull winetricks