1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;