diff --git a/modules/desktop/hyprland/default.nix b/modules/desktop/hyprland/default.nix new file mode 100644 index 00000000..610a1299 --- /dev/null +++ b/modules/desktop/hyprland/default.nix @@ -0,0 +1,18 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.hyprland; +in +{ + options.modules.desktop.hyprland = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + programs.hyprland = { + enable = true; + nvidiaPatches = true; + xwayland = true; + }; + }; +} diff --git a/modules/desktop/xmonad/default.nix b/modules/desktop/xmonad/default.nix index 3ceea297..678b20f6 100644 --- a/modules/desktop/xmonad/default.nix +++ b/modules/desktop/xmonad/default.nix @@ -15,11 +15,11 @@ in windowManager.xmonad = { enable = true; enableContribAndExtras = true; - ghcArgs = [ - "-hidir /tmp" # place interface files in /tmp, otherwise ghc tries to write them to the nix store - "-odir /tmp" # place object files in /tmp, otherwise ghc tries to write them to the nix store - "-i${xmonad-contexts}" # tell ghc to search in the respective nix store path for the module - ]; + ghcArgs = [ + "-hidir /tmp" # place interface files in /tmp, otherwise ghc tries to write them to the nix store + "-odir /tmp" # place object files in /tmp, otherwise ghc tries to write them to the nix store + "-i${xmonad-contexts}" # tell ghc to search in the respective nix store path for the module + ]; }; }; };