nixos-module: Set default project.name
This commit is contained in:
parent
bd3e2fe4e3
commit
5ffaa4104a
1 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ let
|
||||||
|
|
||||||
See <link xlink:href="https://docs.hercules-ci.com/arion/options/">https://docs.hercules-ci.com/arion/options/</link>.
|
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";
|
visible = "shallow";
|
||||||
};
|
};
|
||||||
_systemd = mkOption { internal = true; };
|
_systemd = mkOption { internal = true; };
|
||||||
|
@ -45,8 +45,8 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
arionSettingsType =
|
arionSettingsType = name:
|
||||||
(cfg.package.eval { modules = [ ]; }).type or (
|
(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"
|
throw "lib.evalModules did not produce a type. Please upgrade Nixpkgs to nixos-unstable or >=nixos-21.11"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue