3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #111312 from fdietze/patch-2

herbstluftwm: Add option to specify package
This commit is contained in:
Aaron Andersen 2021-02-09 20:13:03 -05:00 committed by GitHub
commit 5473527775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];
};
}