add xmonad

This commit is contained in:
Sakooooo 2023-07-20 18:36:34 +03:00
parent cab7bcac92
commit 0ccb76fe43
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -0,0 +1,26 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.desktop.xmonad;
in
{
options.modules.desktop.xmoad = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
# https://nixos.wiki/wiki/XMonad
services.xserver = {
enable = true;
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
];
};
};
};
}