diff --git a/modules/flake-parts/setups/home-manager.nix b/modules/flake-parts/setups/home-manager.nix index 441aea20..ee899a78 100644 --- a/modules/flake-parts/setups/home-manager.nix +++ b/modules/flake-parts/setups/home-manager.nix @@ -23,9 +23,16 @@ let freeformType = with lib.types; attrsOf anything; options = { - fastConnection = lib.mkEnableOption "deploy-rs to assume the target machine is considered fast"; - autoRollback = lib.mkEnableOption "deploy-rs auto-rollback feature"; - magicRollback = lib.mkEnableOption "deploy-rs magic rollback feature"; + fastConnection = + lib.mkEnableOption "deploy-rs to assume the target machine is considered fast"; + autoRollback = + lib.mkEnableOption "deploy-rs auto-rollback feature" // { + default = true; + }; + magicRollback = + lib.mkEnableOption "deploy-rs magic rollback feature" // { + default = true; + }; remoteBuild = lib.mkEnableOption "pass the build process to the remote machine"; profiles = lib.mkOption { type = with lib.types; functionTo (attrsOf anything); diff --git a/modules/flake-parts/setups/nixos.nix b/modules/flake-parts/setups/nixos.nix index 75b3f314..42abde12 100644 --- a/modules/flake-parts/setups/nixos.nix +++ b/modules/flake-parts/setups/nixos.nix @@ -52,9 +52,16 @@ let freeformType = with lib.types; attrsOf anything; options = { - fastConnection = lib.mkEnableOption "deploy-rs to assume the target machine is considered fast"; - autoRollback = lib.mkEnableOption "deploy-rs auto-rollback feature"; - magicRollback = lib.mkEnableOption "deploy-rs magic rollback feature"; + fastConnection = + lib.mkEnableOption "deploy-rs to assume the target machine is considered fast"; + autoRollback = + lib.mkEnableOption "deploy-rs auto-rollback feature" // { + default = true; + }; + magicRollback = + lib.mkEnableOption "deploy-rs magic rollback feature" // { + default = true; + }; remoteBuild = lib.mkEnableOption "pass the build process to the remote machine"; profiles = lib.mkOption { type = with lib.types; functionTo (attrsOf anything);