From 33362ddf74325c727ebe7945148611f7c94aca8f Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Fri, 12 Jun 2020 03:18:38 -0700 Subject: [PATCH] Safe defaults --- upgrade-config.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/upgrade-config.nix b/upgrade-config.nix index 2ce8829..67c4ec1 100644 --- a/upgrade-config.nix +++ b/upgrade-config.nix @@ -33,6 +33,7 @@ evalModules { can use them both as points of intervention in the automation and to author and push changes back up. ''; + default = { }; type = types.attrsOf (types.submodule { options = { url = mkOption { @@ -106,6 +107,7 @@ evalModules { repos' paths. ''; type = types.listOf types.path; + default = [ ]; example = [ "/etc/nixos/channels" ]; }; @@ -113,6 +115,7 @@ evalModules { description = '' User environments to update as part of an upgrade run. ''; + default = { }; type = types.attrsOf (types.submodule { options = { package = mkOption { -- 2.44.1