add xmonad
This commit is contained in:
parent
cab7bcac92
commit
0ccb76fe43
1 changed files with 26 additions and 0 deletions
26
modules/desktop/xmonad/default.nix
Normal file
26
modules/desktop/xmonad/default.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue