fix: add offload condition to bind

This commit is contained in:
DACHXY 2025-01-05 16:18:22 +08:00
parent c93bc1099c
commit 4d0a35652c
3 changed files with 9 additions and 6 deletions

View file

@ -5,6 +5,7 @@
nix-version,
git-config,
username,
config,
...
}:
@ -15,6 +16,7 @@ let
# Get bus id with `lshw`
intel-bus-id = "PCI:0:2:0";
nvidia-bus-id = "PCI:1:0:0";
nvidia-offload-enabled = config.hardware.nvidia.prime.offload.enable;
in
{
imports = [
@ -50,6 +52,7 @@ in
hyprcursor-size
git-config
username
nvidia-offload-enabled
;
};
users."${username}" = {