alot: make package used by module configurable

This commit is contained in:
paumr 2024-12-01 21:38:04 +01:00 committed by GitHub
parent 8632735050
commit c1fee8d4a6
Failed to generate hash of commit

View file

@ -132,6 +132,8 @@ in {
''; '';
}; };
package = mkPackageOption pkgs "alot" { };
hooks = mkOption { hooks = mkOption {
type = types.lines; type = types.lines;
default = ""; default = "";
@ -229,7 +231,7 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = [ pkgs.alot ]; home.packages = [ cfg.package ];
xdg.configFile."alot/config".text = configFile; xdg.configFile."alot/config".text = configFile;