mirror of
https://github.com/nix-community/home-manager
synced 2024-12-03 16:39:46 +01:00
alot: make package used by module configurable
This commit is contained in:
parent
8632735050
commit
c1fee8d4a6
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue