Skip to content

Commit

Permalink
deskapp: disabling auto switch to host on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
appaquet committed Dec 28, 2024
1 parent 684aa10 commit 0530de7
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions nixos/deskapp/gpu-switch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,13 @@ in
gpuSwitch
];

systemd.services.switch-gpu-boot = {
description = "Switch GPU to NVIDIA on boot";
after = [ "libvirtd.service" ];
requires = [ "libvirtd.service" ];
serviceConfig = {
Type = "oneshot";
ExecStart = "${gpuSwitch}/bin/gpu-switch nvidia";
};
wantedBy = [ "multi-user.target" ];
};
# description = "Switch GPU to NVIDIA on boot";
# after = [ "libvirtd.service" ];
# requires = [ "libvirtd.service" ];
# serviceConfig = {
# Type = "oneshot";
# ExecStart = "${gpuSwitch}/bin/gpu-switch nvidia";
# };
# wantedBy = [ "multi-user.target" ];
# };
}

0 comments on commit 0530de7

Please sign in to comment.