1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-23 18:29:47 +01:00

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 { config = mkIf cfg.enable {
@ -197,7 +199,7 @@ in {
}; };
}; };
home.packages = [ pkgs.i3status ]; home.packages = [ cfg.package ];
xdg.configFile."i3status/config".text = concatStringsSep "\n" ([ ] xdg.configFile."i3status/config".text = concatStringsSep "\n" ([ ]
++ optional (cfg.general != { }) (formatModule "general" cfg.general) ++ optional (cfg.general != { }) (formatModule "general" cfg.general)

View file

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