From 28b5d14f1b3dae6550530c83619a19d4a74652ee Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Sun, 6 Oct 2024 20:13:43 -0700 Subject: [PATCH] snowhawk: make dwm default specialisation --- hosts/snowhawk/configuration.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/hosts/snowhawk/configuration.nix b/hosts/snowhawk/configuration.nix index cbe1872..66fa577 100644 --- a/hosts/snowhawk/configuration.nix +++ b/hosts/snowhawk/configuration.nix @@ -8,15 +8,18 @@ imports = [ inputs.home-manager.nixosModules.default ../../modules + + # Default specialisation + ({ lib, config, ... }: { + config = lib.mkIf (config.specialisation != { }) { + snowhawk.dwm.enable = true; + + home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }]; + }; + }) ]; specialisation = { - dwm.configuration = { - snowhawk.dwm.enable = true; - - home-manager.sharedModules = [{ snowhawk.dunst.enable = lib.mkDefault true; }]; - }; - dwl.configuration = { snowhawk.dwl.enable = true;