mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
herbstluftwm: Add option to specify package
This commit is contained in:
parent
8ca74894e3
commit
5a827051aa
@ -11,6 +11,15 @@ in
|
||||
services.xserver.windowManager.herbstluftwm = {
|
||||
enable = mkEnableOption "herbstluftwm";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.herbstluftwm;
|
||||
defaultText = "pkgs.herbstluftwm";
|
||||
description = ''
|
||||
Herbstluftwm package to use.
|
||||
'';
|
||||
};
|
||||
|
||||
configFile = mkOption {
|
||||
default = null;
|
||||
type = with types; nullOr path;
|
||||
@ -31,8 +40,8 @@ in
|
||||
(cfg.configFile != null)
|
||||
''-c "${cfg.configFile}"''
|
||||
;
|
||||
in "${pkgs.herbstluftwm}/bin/herbstluftwm ${configFileClause}";
|
||||
in "${cfg.package}/bin/herbstluftwm ${configFileClause}";
|
||||
};
|
||||
environment.systemPackages = [ pkgs.herbstluftwm ];
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user