summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-09-11 08:12:58 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-09-11 08:12:58 +0200
commit211c680cb30b635cb7b8a54bc4471ac567432a3a (patch)
tree4a70d2b32f968e04af817900bf5a9935a4bb5acb /accounts/gkleen@sif/default.nix
parent56109f4de719ea1917b7a1a55d9e4b427f65c701 (diff)
downloadnixos-211c680cb30b635cb7b8a54bc4471ac567432a3a.tar
nixos-211c680cb30b635cb7b8a54bc4471ac567432a3a.tar.gz
nixos-211c680cb30b635cb7b8a54bc4471ac567432a3a.tar.bz2
nixos-211c680cb30b635cb7b8a54bc4471ac567432a3a.tar.xz
nixos-211c680cb30b635cb7b8a54bc4471ac567432a3a.zip
bump
Diffstat (limited to 'accounts/gkleen@sif/default.nix')
-rw-r--r--accounts/gkleen@sif/default.nix10
1 files changed, 1 insertions, 9 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix
index 7df0235e..8cee684f 100644
--- a/accounts/gkleen@sif/default.nix
+++ b/accounts/gkleen@sif/default.nix
@@ -80,14 +80,6 @@ let
80 ]; 80 ];
81 }; 81 };
82 82
83 nvidiaOffloadScript = pkgs.writeShellScriptBin "nvidia-offload" ''
84 export __NV_PRIME_RENDER_OFFLOAD=1
85 export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
86 export __GLX_VENDOR_LIBRARY_NAME=nvidia
87 export __VK_LAYER_NV_optimus=NVIDIA_only
88 exec -a "$1" "$@"
89 '';
90
91 lockCommand = "${config.systemd.package}/bin/systemctl --user start gtklock.service"; 83 lockCommand = "${config.systemd.package}/bin/systemctl --user start gtklock.service";
92in { 84in {
93 imports = with flake.nixosModules.userProfiles.${userName}; [ 85 imports = with flake.nixosModules.userProfiles.${userName}; [
@@ -715,7 +707,7 @@ in {
715 matrix-synapse-tools.synadm 707 matrix-synapse-tools.synadm
716 flakeInputs.deploy-rs.packages.${config.nixpkgs.system}.deploy-rs 708 flakeInputs.deploy-rs.packages.${config.nixpkgs.system}.deploy-rs
717 sieve-connect gimp inkscape udiskie glab nitrokey-app 709 sieve-connect gimp inkscape udiskie glab nitrokey-app
718 pynitrokey gtklock wlrctl nvidiaOffloadScript 710 pynitrokey gtklock wlrctl
719 ]; 711 ];
720 712
721 file = { 713 file = {