blob: da005b21c08b57304ccf8cc49e1926507c62d91c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.nixfiles.modules.xmonad;
in {
options.nixfiles.modules.xmonad.enable = mkEnableOption "XMonad";
config = mkIf cfg.enable {
nixfiles.modules.x11.enable = true;
hm = {
xsession = {
enable = true;
scriptPath = ".xinitrc";
windowManager.command = "${pkgs.xmonad-ng}/bin/xmonad-ng";
};
};
services.xserver.displayManager.startx.enable = true;
};
}
|