From: Scott Worley Date: Fri, 12 Jun 2020 10:18:38 +0000 (-0700) Subject: Safe defaults X-Git-Url: http://git.scottworley.com/auto-upgrade-with-pinch/commitdiff_plain/33362ddf74325c727ebe7945148611f7c94aca8f?ds=sidebyside Safe defaults --- 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 {