From 47db174a3cdc93b8c9ce81dca47217c1ebd96146 Mon Sep 17 00:00:00 2001 From: Ashlynn Anderson Date: Mon, 7 Jun 2021 15:44:13 -0400 Subject: [PATCH] nixos/self-deploy: make nixAttribute nullable (#125617) Allows using a nix file that directly provides the derivation --- nixos/modules/services/system/self-deploy.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/system/self-deploy.nix b/nixos/modules/services/system/self-deploy.nix index 3c82ed4fc593..33d15e08f4aa 100644 --- a/nixos/modules/services/system/self-deploy.nix +++ b/nixos/modules/services/system/self-deploy.nix @@ -37,7 +37,9 @@ in }; nixAttribute = lib.mkOption { - type = lib.types.str; + type = with lib.types; nullOr str; + + default = null; description = '' Attribute of `nixFile` that builds the current system.