chore: format repo using treefmt-nix and nixfmt-rfc-style

This commit is contained in:
Andre 2025-06-04 12:11:03 -04:00
parent fc7c471412
commit 51e51e6014
266 changed files with 3721 additions and 2733 deletions

View file

@ -1,4 +1,4 @@
{lib, config, ...}:
{ lib, config, ... }:
let
nvidiaPackage = config.hardware.nvidia.package;
in

View file

@ -1,4 +1,4 @@
{lib, config, ...}:
{ lib, config, ... }:
let
nvidiaPackage = config.hardware.nvidia.package;
in

View file

@ -8,7 +8,7 @@
blacklist nouveau
options nouveau modeset=0
'';
services.udev.extraRules = ''
# Remove NVIDIA USB xHCI Host Controller devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{power/control}="auto", ATTR{remove}="1"
@ -22,5 +22,10 @@
# Remove NVIDIA VGA/3D controller devices
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x03[0-9]*", ATTR{power/control}="auto", ATTR{remove}="1"
'';
boot.blacklistedKernelModules = [ "nouveau" "nvidia" "nvidia_drm" "nvidia_modeset" ];
boot.blacklistedKernelModules = [
"nouveau"
"nvidia"
"nvidia_drm"
"nvidia_modeset"
];
}

View file

@ -1,4 +1,4 @@
{lib, ...}:
{ lib, ... }:
{
imports = [ ../. ];

View file

@ -1,4 +1,4 @@
{lib, ...}:
{ lib, ... }:
{
imports = [ ../. ];

View file

@ -1,4 +1,4 @@
{lib, ...}:
{ lib, ... }:
{
imports = [ ../. ];

View file

@ -19,7 +19,7 @@
specialisation = lib.mkIf config.hardware.nvidia.primeBatterySaverSpecialisation {
battery-saver.configuration = {
system.nixos.tags = ["battery-saver"];
system.nixos.tags = [ "battery-saver" ];
imports = [
# Leave only the integrated GPU enabled
./disable.nix
@ -28,7 +28,7 @@
prime.offload.enable = lib.mkForce false;
powerManagement = {
enable = lib.mkForce false;
finegrained = lib.mkForce false;
finegrained = lib.mkForce false;
};
};
};

View file

@ -1,4 +1,4 @@
{lib, config, ...}:
{ lib, config, ... }:
let
nvidiaPackage = config.hardware.nvidia.package;
in