add hyprland module and i dont know what i changed in xmonad
This commit is contained in:
parent
d7695ccc6a
commit
9c81de9bcf
2 changed files with 23 additions and 5 deletions
18
modules/desktop/hyprland/default.nix
Normal file
18
modules/desktop/hyprland/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue