i3status: add package attribute

This commit is contained in:
David Warde-Farley 2022-10-19 00:50:06 +01:00 committed by Robert Helgesson
parent d1191c6d05
commit c485669ca5
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 5 additions and 1 deletions

View file

@ -138,6 +138,8 @@ in {
}
'';
};
package = mkPackageOption pkgs "i3status" { };
};
config = mkIf cfg.enable {
@ -197,7 +199,7 @@ in {
};
};
home.packages = [ pkgs.i3status ];
home.packages = [ cfg.package ];
xdg.configFile."i3status/config".text = concatStringsSep "\n" ([ ]
++ optional (cfg.general != { }) (formatModule "general" cfg.general)

View file

@ -16,6 +16,8 @@ with lib;
interval = 1;
};
package = config.lib.test.mkStubPackage { };
modules = {
"volume master" = {
position = 1;