From c1fee8d4a60b89cae12b288ba9dbc608ff298163 Mon Sep 17 00:00:00 2001 From: paumr <53442728+paumr@users.noreply.github.com> Date: Sun, 1 Dec 2024 21:38:04 +0100 Subject: [PATCH] alot: make package used by module configurable --- modules/programs/alot.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/programs/alot.nix b/modules/programs/alot.nix index d0f552f92..10dec7c0c 100644 --- a/modules/programs/alot.nix +++ b/modules/programs/alot.nix @@ -132,6 +132,8 @@ in { ''; }; + package = mkPackageOption pkgs "alot" { }; + hooks = mkOption { type = types.lines; default = ""; @@ -229,7 +231,7 @@ in { }; config = mkIf cfg.enable { - home.packages = [ pkgs.alot ]; + home.packages = [ cfg.package ]; xdg.configFile."alot/config".text = configFile;