Merge pull request #199798 from j2ghz/patch-1

Add package override to mimir
This commit is contained in:
Sandro 2023-02-21 09:37:57 +01:00 committed by GitHub
commit 7606d0e004
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,13 @@ in {
Specify a configuration file that Mimir should use.
'';
};
package = mkOption {
default = pkgs.mimir;
defaultText = lib.literalExpression "pkgs.mimir";
type = types.package;
description = lib.mdDoc ''Mimir package to use.'';
};
};
config = mkIf cfg.enable {
@ -53,7 +60,7 @@ in {
else cfg.configFile;
in
{
ExecStart = "${pkgs.mimir}/bin/mimir --config.file=${conf}";
ExecStart = "${cfg.package}/bin/mimir --config.file=${conf}";
DynamicUser = true;
Restart = "always";
ProtectSystem = "full";