From dc69dacd51eceec1714830a261f573e724ffe055 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Fri, 21 Jun 2024 09:35:48 +0200 Subject: [PATCH] refactor: make nix code look pretty --- modules/core/bootloader.nix | 12 ++++++++---- modules/core/hardware.nix | 16 +++++++++------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/modules/core/bootloader.nix b/modules/core/bootloader.nix index 1904160..85f4814 100644 --- a/modules/core/bootloader.nix +++ b/modules/core/bootloader.nix @@ -1,7 +1,11 @@ { pkgs, ... }: { - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - boot.loader.systemd-boot.configurationLimit = 10; - boot.kernelPackages = pkgs.linuxPackages_latest; + boot = { + kernelPackages = pkgs.linuxPackages_latest; + loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + systemd-boot.configurationLimit = 10; + }; + }; } diff --git a/modules/core/hardware.nix b/modules/core/hardware.nix index 5ec65b0..fd285b3 100644 --- a/modules/core/hardware.nix +++ b/modules/core/hardware.nix @@ -1,10 +1,12 @@ { pkgs, ... }: { - hardware.opengl.enable = true; - hardware.opengl.driSupport = true; - hardware.opengl.driSupport32Bit = true; - hardware.enableRedistributableFirmware = true; - hardware.opengl.extraPackages = with pkgs; [ - - ]; + hardware = { + opengl = { + enable = true; + driSupport = true; + driSupport32Bit = true; + extraPackages = with pkgs; []; + }; + enableRedistributableFirmware = true; + }; }