htgen module: add package option
This commit is contained in:
parent
a780107309
commit
25505301ad
|
@ -20,6 +20,11 @@ let
|
||||||
default = config._module.args.name;
|
default = config._module.args.name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
default = pkgs.htgen;
|
||||||
|
type = types.package;
|
||||||
|
};
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.uint;
|
type = types.uint;
|
||||||
};
|
};
|
||||||
|
@ -52,7 +57,7 @@ let
|
||||||
User = htgen.user.name;
|
User = htgen.user.name;
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
ExecStart = "${pkgs.htgen}/bin/htgen --serve";
|
ExecStart = "${htgen.package}/bin/htgen --serve";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
) cfg;
|
) cfg;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user