blob: 2cc7ad6844a089936463d88bb8e6e1465b1766a3 (
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
28
|
{
config,
inputs,
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;
};
}
|