mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-15 21:41:09 +01:00
treewide: use mkPackageOption (#6727)
This commit is contained in:
parent
1f679ed2a2
commit
f1d4acaa10
29 changed files with 39 additions and 195 deletions
|
|
@ -14,12 +14,7 @@ in {
|
|||
|
||||
enableNotifications = mkEnableOption "lorri build notifications";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.lorri;
|
||||
defaultText = literalExpression "pkgs.lorri";
|
||||
description = "Which lorri package to install.";
|
||||
};
|
||||
package = lib.mkPackageOption pkgs "lorri" { };
|
||||
|
||||
nixPackage = mkOption {
|
||||
type = types.package;
|
||||
|
|
|
|||
|
|
@ -72,12 +72,8 @@ in {
|
|||
services.polybar = {
|
||||
enable = mkEnableOption "Polybar status bar";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.polybar;
|
||||
defaultText = literalExpression "pkgs.polybar";
|
||||
description = "Polybar package to install.";
|
||||
example = literalExpression ''
|
||||
package = lib.mkPackageOption pkgs "polybar" {
|
||||
example = ''
|
||||
pkgs.polybar.override {
|
||||
i3GapsSupport = true;
|
||||
alsaSupport = true;
|
||||
|
|
|
|||
|
|
@ -49,12 +49,7 @@ in {
|
|||
in {
|
||||
enable = mkEnableOption "idle manager for Wayland";
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.swayidle;
|
||||
defaultText = literalExpression "pkgs.swayidle";
|
||||
description = "Swayidle package to install.";
|
||||
};
|
||||
package = lib.mkPackageOption pkgs "swayidle" { };
|
||||
|
||||
timeouts = mkOption {
|
||||
type = with types; listOf (submodule timeoutModule);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue