mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-31 04:04:32 +00:00
waylogout: nullable package support
This commit is contained in:
parent
e0be70bcf9
commit
16a2a802de
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
package = lib.mkPackageOption pkgs "waylogout" { };
|
||||
package = lib.mkPackageOption pkgs "waylogout" { nullable = true; };
|
||||
|
||||
settings = lib.mkOption {
|
||||
type = with lib.types; attrsOf (oneOf [ bool float int str ]);
|
||||
|
@ -39,7 +39,7 @@ in {
|
|||
lib.platforms.linux)
|
||||
];
|
||||
|
||||
home.packages = [ cfg.package ];
|
||||
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
||||
|
||||
xdg.configFile."waylogout/config" = lib.mkIf (cfg.settings != { }) {
|
||||
text = lib.concatStrings (lib.mapAttrsToList (n: v:
|
||||
|
|
Loading…
Add table
Reference in a new issue