From 5ffaa4104a7f416b50daf7263647e9bdbe7f4cd2 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Tue, 31 May 2022 23:46:14 +0200 Subject: [PATCH] nixos-module: Set default project.name --- nixos-module.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos-module.nix b/nixos-module.nix index 8aacc25..375994a 100644 --- a/nixos-module.nix +++ b/nixos-module.nix @@ -22,7 +22,7 @@ let See https://docs.hercules-ci.com/arion/options/. ''; - 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" );