add hyprland module and i dont know what i changed in xmonad

This commit is contained in:
Sakooooo 2023-07-21 15:21:45 +03:00
parent d7695ccc6a
commit 9c81de9bcf
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 23 additions and 5 deletions

View file

@ -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;
};
};
}

View file

@ -15,11 +15,11 @@ in
windowManager.xmonad = { windowManager.xmonad = {
enable = true; enable = true;
enableContribAndExtras = true; enableContribAndExtras = true;
ghcArgs = [ ghcArgs = [
"-hidir /tmp" # place interface files in /tmp, otherwise ghc tries to write them to the nix store "-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 "-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 "-i${xmonad-contexts}" # tell ghc to search in the respective nix store path for the module
]; ];
}; };
}; };
}; };