From c9df2483ecd004c7467ebb46f3258008dc5a4ef6 Mon Sep 17 00:00:00 2001 From: tux Date: Thu, 7 May 2026 18:40:29 +0530 Subject: [PATCH] refactor: seperate graphics config --- modules/hosts/sirius/config.nix | 9 +-------- modules/nixos/desktop/graphics.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 modules/nixos/desktop/graphics.nix diff --git a/modules/hosts/sirius/config.nix b/modules/hosts/sirius/config.nix index b592439..cd2d13c 100644 --- a/modules/hosts/sirius/config.nix +++ b/modules/hosts/sirius/config.nix @@ -63,21 +63,14 @@ # --- Hardware / GPU --- hardware = { - graphics = { - enable = true; - enable32Bit = true; - }; nvidia = { modesetting.enable = true; open = false; nvidiaSettings = true; }; - - enableAllFirmware = true; - usb-modeswitch.enable = true; }; - services.xserver.videoDrivers = [ "nvidia" ]; + environment.systemPackages = with pkgs; [ nvtopPackages.full ]; # --- Programs --- programs.firefox.enable = true; diff --git a/modules/nixos/desktop/graphics.nix b/modules/nixos/desktop/graphics.nix new file mode 100644 index 0000000..b2887f2 --- /dev/null +++ b/modules/nixos/desktop/graphics.nix @@ -0,0 +1,13 @@ +{ + flake.modules.nixos.desktop = { + hardware = { + graphics = { + enable = true; + enable32Bit = true; + }; + + enableAllFirmware = true; + usb-modeswitch.enable = true; + }; + }; +}