Fix NixOS switch with local HyprNStack

This commit is contained in:
2026-05-10 01:11:42 -07:00
parent 57cccedcf9
commit e7486cb2c4
2 changed files with 10 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ switch *args:
env PATH=/run/wrappers/bin:$PATH sudo nixos-rebuild switch --flake ".#" --impure --option warn-dirty false \ env PATH=/run/wrappers/bin:$PATH sudo nixos-rebuild switch --flake ".#" --impure --option warn-dirty false \
--override-input imalison-taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar \ --override-input imalison-taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar \
--override-input taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \ --override-input taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \
--override-input hyprNStack path:/home/imalison/Projects/hyprNStack \
{{args}} {{args}}
switch-remote *args: switch-remote *args:
@@ -25,6 +26,7 @@ switch-local *args:
env PATH=/run/wrappers/bin:$PATH sudo nixos-rebuild switch --flake ".#" --impure --option warn-dirty false \ env PATH=/run/wrappers/bin:$PATH sudo nixos-rebuild switch --flake ".#" --impure --option warn-dirty false \
--override-input imalison-taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar \ --override-input imalison-taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar \
--override-input taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \ --override-input taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \
--override-input hyprNStack path:/home/imalison/Projects/hyprNStack \
{{args}} {{args}}
switch-local-taffybar *args: switch-local-taffybar *args:
@@ -40,6 +42,7 @@ switch-local-taffybar *args:
nixos-rebuild switch --flake "git+https://github.com/colonelpanic8/dotfiles.git?ref=master&dir=nixos#" --impure --option warn-dirty false \ nixos-rebuild switch --flake "git+https://github.com/colonelpanic8/dotfiles.git?ref=master&dir=nixos#" --impure --option warn-dirty false \
--override-input imalison-taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar \ --override-input imalison-taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar \
--override-input taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \ --override-input taffybar path:/home/imalison/dotfiles/dotfiles/config/taffybar/taffybar \
--override-input hyprNStack path:/home/imalison/Projects/hyprNStack \
{{args}} {{args}}
remote-switch host *args: remote-switch host *args:

View File

@@ -23,6 +23,13 @@ makeEnable config "myModules.nvidia" false {
hardware.graphics.enable32Bit = true; hardware.graphics.enable32Bit = true;
hardware.graphics.extraPackages = [config.hardware.nvidia.package.out]; hardware.graphics.extraPackages = [config.hardware.nvidia.package.out];
hardware.graphics.extraPackages32 = [config.hardware.nvidia.package.lib32]; hardware.graphics.extraPackages32 = [config.hardware.nvidia.package.lib32];
systemd.services.nvidia-container-toolkit-cdi-generator.serviceConfig = {
# During `nixos-rebuild switch`, the NVIDIA userspace package can be newer
# than the already-loaded kernel module. In that transient state NVML exits
# with a driver/library mismatch, but the generator succeeds again after the
# reboot that loads the matching module.
SuccessExitStatus = ["1"];
};
services.xserver = { services.xserver = {
videoDrivers = ["nvidia"]; videoDrivers = ["nvidia"];
}; };