From 9c81de9bcf7b92780c9543e771cd628af46c840e Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 21 Jul 2023 15:21:45 +0300 Subject: [PATCH] add hyprland module and i dont know what i changed in xmonad --- modules/desktop/hyprland/default.nix | 18 ++++++++++++++++++ modules/desktop/xmonad/default.nix | 10 +++++----- 2 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 modules/desktop/hyprland/default.nix 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 + ]; }; }; };