mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-29 22:51:11 +03:00
Merge pull request #157 from hercules-ci/nixos-module-set-default-project.name
nixos-module: Set default project.name
This commit is contained in:
commit
5b0126a55d
@ -22,7 +22,7 @@ let
|
||||
|
||||
See <link xlink:href="https://docs.hercules-ci.com/arion/options/">https://docs.hercules-ci.com/arion/options/</link>.
|
||||
'';
|
||||
type = arionSettingsType;
|
||||
type = arionSettingsType name;
|
||||
visible = "shallow";
|
||||
};
|
||||
_systemd = mkOption { internal = true; };
|
||||
@ -45,8 +45,8 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
arionSettingsType =
|
||||
(cfg.package.eval { modules = [ ]; }).type or (
|
||||
arionSettingsType = name:
|
||||
(cfg.package.eval { modules = [ { project.name = lib.mkDefault name; } ]; }).type or (
|
||||
throw "lib.evalModules did not produce a type. Please upgrade Nixpkgs to nixos-unstable or >=nixos-21.11"
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user