From 9e3734183830bc323f2cd6ee40acac42ceac999b Mon Sep 17 00:00:00 2001 From: tux Date: Mon, 10 Aug 2026 22:30:45 +0530 Subject: [PATCH] feat(sirius): enable cardwire service --- modules/hosts/sirius/hardware.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/modules/hosts/sirius/hardware.nix b/modules/hosts/sirius/hardware.nix index 0806d11..313e615 100644 --- a/modules/hosts/sirius/hardware.nix +++ b/modules/hosts/sirius/hardware.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ inputs, config, ... }: { flake.modules.nixos.sirius = { @@ -8,9 +8,14 @@ ... }@innerArgs: { - imports = with config.flake.modules.nixos; [ - hardware - ]; + imports = + with config.flake.modules.nixos; + [ + hardware + ] + ++ [ + inputs.cardwire.nixosModules.default + ]; boot.kernelParams = [ "nvidia-drm.modeset=1" ]; boot.initrd.availableKernelModules = [ @@ -38,6 +43,11 @@ services = { xserver.videoDrivers = [ "nvidia" ]; power-profiles-daemon.enable = true; + + cardwire = { + enable = true; + settings.auto_apply_gpu_state = true; + }; }; networking.useDHCP = lib.mkDefault true;