mirror of
https://github.com/nix-community/home-manager
synced 2024-11-01 00:39:45 +01:00
xsession: make windowManager option required
Also add a fairly complicated example.
This commit is contained in:
parent
6e3085dc22
commit
3c69c7589a
1 changed files with 8 additions and 1 deletions
|
@ -14,8 +14,15 @@ in
|
||||||
enable = mkEnableOption "X Session";
|
enable = mkEnableOption "X Session";
|
||||||
|
|
||||||
windowManager = mkOption {
|
windowManager = mkOption {
|
||||||
default = {};
|
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
example = literalExample ''
|
||||||
|
let
|
||||||
|
xmonad = pkgs.xmonad-with-packages.override {
|
||||||
|
packages = self: [ self.xmonad-contrib self.taffybar ];
|
||||||
|
};
|
||||||
|
in
|
||||||
|
"''${xmonad}/bin/xmonad";
|
||||||
|
'';
|
||||||
description = "Path to window manager to exec.";
|
description = "Path to window manager to exec.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue