mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00:00
i3status: add package
attribute
This commit is contained in:
parent
d1191c6d05
commit
c485669ca5
2 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -16,6 +16,8 @@ with lib;
|
|||
interval = 1;
|
||||
};
|
||||
|
||||
package = config.lib.test.mkStubPackage { };
|
||||
|
||||
modules = {
|
||||
"volume master" = {
|
||||
position = 1;
|
||||
|
|
Loading…
Reference in a new issue