Skip to content

Commit

Permalink
Nix module: add package option
Browse files Browse the repository at this point in the history
This allows users to set a different package, for example pkgs.matugen.

Co-authored-by: Amadej Kastelic <[email protected]>
  • Loading branch information
fufexan and amadejkastelic committed Aug 5, 2024
1 parent a8a6fe3 commit da313f6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ matugen: {
cd $out
export HOME=$(pwd)
${pkg}/bin/matugen \
${cfg.package}/bin/matugen \
image ${cfg.wallpaper} \
${
if cfg.templates != {}
Expand All @@ -57,6 +57,12 @@ in {
options.programs.matugen = {
enable = lib.mkEnableOption "Matugen declarative theming";

package =
lib.mkPackageOption pkgs "matugen" {}
// {
default = pkg;
};

wallpaper = lib.mkOption {
description = "Path to `wallpaper` that matugen will generate the colorschemes from";
type = lib.types.path;
Expand Down

0 comments on commit da313f6

Please sign in to comment.