]> git.scottworley.com Git - auto-upgrade-with-pinch/blobdiff - upgrade-config.nix
Add the option to use `nix-env --set` for user profiles
[auto-upgrade-with-pinch] / upgrade-config.nix
index ba2bb5a4f2969648940a0e79d5437a29e49d98d7..abf70aad2da6998c7de0b5b822c63be20a1db000 100644 (file)
@@ -146,8 +146,8 @@ evalModules {
                 otherPackagesAction = mkOption {
                   type = types.enum [
                     "remove"
                 otherPackagesAction = mkOption {
                   type = types.enum [
                     "remove"
+                    "set-remove"
                     "keep"
                     "keep"
-                    "abort"
                   ];
                   default = "remove";
                   description = ''
                   ];
                   default = "remove";
                   description = ''
@@ -159,9 +159,10 @@ evalModules {
                     through your one entire-environment <literal>package</literal>.
                     This keeps your environment declarative and ensures that all
                     packages receive regular updates.
                     through your one entire-environment <literal>package</literal>.
                     This keeps your environment declarative and ensures that all
                     packages receive regular updates.
+
+                    "set-remove" is mostly equilavent to "remove", but uses
+                    nix-env --set, resulting in a profile without a manifest.nix.
                   '';
                   '';
-                  # It seems like "upgrade" ought to be another choice here, powered
-                  # by "nix-env --upgrade".  But when I tried this, it didn't work.
                 };
               };
             }
                 };
               };
             }