nixos/xmonad: allow passing command line arguments
This commit is contained in:
parent
6ee4ca6d1f
commit
15d87cb81c
@ -76,6 +76,15 @@ in
|
|||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xmonadCliArgs = mkOption {
|
||||||
|
default = [];
|
||||||
|
type = with lib.types; listOf str;
|
||||||
|
description = ''
|
||||||
|
Command line arguments passed to the xmonad binary.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
@ -85,7 +94,7 @@ in
|
|||||||
start = let
|
start = let
|
||||||
xmonadCommand = if (cfg.config != null) then xmonadBin else "${xmonad}/bin/xmonad";
|
xmonadCommand = if (cfg.config != null) then xmonadBin else "${xmonad}/bin/xmonad";
|
||||||
in ''
|
in ''
|
||||||
systemd-cat -t xmonad ${xmonadCommand} &
|
systemd-cat -t xmonad -- ${xmonadCommand} ${lib.escapeShellArgs cfg.xmonadCliArgs} &
|
||||||
waitPID=$!
|
waitPID=$!
|
||||||
'';
|
'';
|
||||||
}];
|
}];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user