From 16a2a802de24a122800ec744639976cb457dde23 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 19 Mar 2025 13:52:58 -0500 Subject: [PATCH] waylogout: nullable package support --- modules/programs/waylogout.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/waylogout.nix b/modules/programs/waylogout.nix index 8c5ac4d80..85cdb43a4 100644 --- a/modules/programs/waylogout.nix +++ b/modules/programs/waylogout.nix @@ -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: