fix: add default value for offload

This commit is contained in:
DACHXY 2025-01-10 14:25:44 +08:00
parent 898d56ebd6
commit 45563277d5
2 changed files with 4 additions and 1 deletions

View file

@ -5,7 +5,7 @@
system, system,
hyprcursor-size, hyprcursor-size,
xcursor-size, xcursor-size,
nvidia-offload-enabled, nvidia-offload-enabled ? false,
... ...
}: let }: let
terminal = "ghostty"; terminal = "ghostty";

View file

@ -5,12 +5,14 @@
nix-version, nix-version,
git-config, git-config,
username, username,
config,
... ...
}: }:
let let
hyprcursor-size = "32"; hyprcursor-size = "32";
xcursor-size = "24"; xcursor-size = "24";
nvidia-offload-enabled = config.hardware.nvidia.prime.offload.enable;
in in
{ {
imports = [ imports = [
@ -39,6 +41,7 @@ in
hyprcursor-size hyprcursor-size
git-config git-config
username username
nvidia-offload-enabled
; ;
}; };
users."${username}" = { users."${username}" = {