From af11b7eddf9d1bce3cd570ef8c3582c1c9062a22 Mon Sep 17 00:00:00 2001 From: smayzy Date: Thu, 30 Apr 2026 00:50:44 +0200 Subject: [PATCH] fmt --- hosts/laptop2/hardware-configuration.nix | 48 +++++++++++++++--------- modules/home-manager/lf/lf.nix | 2 +- modules/nix/games/steam.nix | 5 ++- modules/nix/groups/desktop.nix | 7 +++- 4 files changed, 42 insertions(+), 20 deletions(-) diff --git a/hosts/laptop2/hardware-configuration.nix b/hosts/laptop2/hardware-configuration.nix index b19bbbf..3eaab8e 100644 --- a/hosts/laptop2/hardware-configuration.nix +++ b/hosts/laptop2/hardware-configuration.nix @@ -1,32 +1,46 @@ # 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, ... }: +{ + 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 = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/ceed0ac4-72b3-4050-b8a3-0b91aa845da0"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/ceed0ac4-72b3-4050-b8a3-0b91aa845da0"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/65F0-BF7E"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; - - swapDevices = - [ { device = "/dev/disk/by-uuid/3567a75d-12cc-4c3e-a37d-9b99708cbfea"; } + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/65F0-BF7E"; + fsType = "vfat"; + options = [ + "fmask=0077" + "dmask=0077" ]; + }; + + swapDevices = [ + { device = "/dev/disk/by-uuid/3567a75d-12cc-4c3e-a37d-9b99708cbfea"; } + ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; diff --git a/modules/home-manager/lf/lf.nix b/modules/home-manager/lf/lf.nix index 8607a03..2c1099d 100644 --- a/modules/home-manager/lf/lf.nix +++ b/modules/home-manager/lf/lf.nix @@ -15,7 +15,7 @@ in enable = true; commands = { dragon-out = ''%${pkgs.dragon-drop}/bin/xdragon -a -x "$fx"''; - editor-open = ''$$EDITOR $f''; + editor-open = "$$EDITOR $f"; mkdir = '' ''${{ printf "Directory Name: " diff --git a/modules/nix/games/steam.nix b/modules/nix/games/steam.nix index 09fe538..d8c021b 100644 --- a/modules/nix/games/steam.nix +++ b/modules/nix/games/steam.nix @@ -16,6 +16,9 @@ in config = mkIf config.smayzy.steam.enable { programs.steam.enable = true; - environment.systemPackages = with pkgs; [ depotdownloader protontricks ]; + environment.systemPackages = with pkgs; [ + depotdownloader + protontricks + ]; }; } diff --git a/modules/nix/groups/desktop.nix b/modules/nix/groups/desktop.nix index 818aae9..dd5b512 100644 --- a/modules/nix/groups/desktop.nix +++ b/modules/nix/groups/desktop.nix @@ -1,4 +1,9 @@ -{ lib, config, pkgs, ... }: +{ + lib, + config, + pkgs, + ... +}: let inherit (lib) mkIf mkOption types; in