treewide: format using nixfmt

Signed-off-by: Bloxx12 <charlie@charlieroot.dev>
Change-Id: I6a6a69641c36f9763e104087a559c148d0449f00
This commit is contained in:
Bloxx12 2025-07-20 01:23:48 +02:00
commit e641dfa114
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
113 changed files with 1545 additions and 1019 deletions

View file

@ -3,19 +3,20 @@
lib,
pkgs,
...
}: let
}:
let
inherit (lib.modules) mkIf;
cfg = config.modules.system.hardware.bluetooth;
in {
in
{
config = mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
inherit (cfg) powerOnBoot;
};
environment.systemPackages = builtins.attrValues {
inherit
(pkgs)
inherit (pkgs)
bluetuith
bluez
blueman

View file

@ -2,12 +2,14 @@
config,
lib,
...
}: let
}:
let
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
cfg = config.modules.system.hardware;
in {
in
{
options.modules.system.hardware = {
nvidia = {
enable = mkEnableOption "Nvidia graphics drivers";
@ -32,6 +34,6 @@ in {
package = config.boot.kernelPackages.nvidiaPackages.beta;
};
};
services.xserver.videoDrivers = mkIf cfg.nvidia.enable ["nvidia"];
services.xserver.videoDrivers = mkIf cfg.nvidia.enable [ "nvidia" ];
};
}

View file

@ -3,19 +3,20 @@
lib,
pkgs,
...
}: let
}:
let
inherit (lib.modules) mkDefault mkIf;
inherit (lib.options) mkEnableOption;
cfg = config.modules.system.hardware.intel;
in {
in
{
options.modules.system.hardware.intel.enable = mkEnableOption "Intel Hardware";
config = mkIf cfg.enable {
hardware = {
cpu.intel.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
graphics.extraPackages = builtins.attrValues {
inherit
(pkgs)
inherit (pkgs)
intel-vaapi-driver
intel-media-driver
;

View file

@ -2,11 +2,13 @@
config,
lib,
...
}: let
}:
let
inherit (lib.modules) mkIf;
cfg = config.modules.system.sound;
in {
in
{
config = mkIf cfg.enable {
services.pipewire = {
enable = true;

View file

@ -4,23 +4,24 @@
lib,
pkgs,
...
}: let
}:
let
inherit (lib.modules) mkDefault;
in {
in
{
imports = [
# (sources.watt + "/nix/module.nix")
];
config = {
environment.systemPackages = builtins.attrValues {
inherit
(pkgs)
inherit (pkgs)
acpi
powertop
;
};
boot = {
kernelModules = ["acpi_call"];
kernelModules = [ "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [
acpi_call
cpupower