diff --git a/hosts/snowhawk/configuration.nix b/hosts/snowhawk/configuration.nix index 175278a..35b02bb 100644 --- a/hosts/snowhawk/configuration.nix +++ b/hosts/snowhawk/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running `nixos-help`). -{ pkgs, inputs, lib, ... }: +{ pkgs, inputs, lib, config, ... }: { imports = [ @@ -19,13 +19,32 @@ }) ]; - specialisation = { - dwl.configuration = { - snowhawk.dwl.enable = true; + specialisation = + let + nvkConfig = { + system.nixos.tags = [ "nouveau-drivers" ]; + boot.kernelParams = [ "nouveau.config=NvGspRm=1" ]; + services.xserver.videoDrivers = (lib.lists.remove "nvidia" config.services.xserver.videoDrivers); + }; + in + { + dwmNVK.configuration = { + snowhawk.dwm.enable = true; - home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }]; + home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }]; + } // nvkConfig; + + dwl.configuration = { + snowhawk.dwl.enable = true; + + home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }]; + }; + dwlNVK.configuration = { + snowhawk.dwl.enable = true; + + home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }]; + } // nvkConfig; }; - }; snowhawk = { filesystem.enable = true;