diff --git a/modules/flake-parts/setups/home-manager.nix b/modules/flake-parts/setups/home-manager.nix index dc0d4ef6..58227648 100644 --- a/modules/flake-parts/setups/home-manager.nix +++ b/modules/flake-parts/setups/home-manager.nix @@ -36,19 +36,19 @@ let remoteBuild = lib.mkEnableOption "pass the build process to the remote machine"; profiles = lib.mkOption { type = with lib.types; functionTo (attrsOf anything); - default = os: { + default = homeenv: { home = { sshUser = username; user = username; - path = inputs.deploy.lib.${os.system}.activate.home-manager os.config; + path = inputs.deploy.lib.${homeenv.system}.activate.home-manager homeenv.config; }; }; defaultText = lib.literalExpression '' - os: { + homeenv: { home = { sshUser = "$USERNAME"; user = "$USERNAME"; - path = .lib.''${os.system}.activate.home-manager os.config; + path = .lib.''${homeenv.system}.activate.home-manager homeenv.config; }; } ''; diff --git a/modules/flake-parts/setups/nixos.nix b/modules/flake-parts/setups/nixos.nix index 8a8a2798..2a9b9516 100644 --- a/modules/flake-parts/setups/nixos.nix +++ b/modules/flake-parts/setups/nixos.nix @@ -284,6 +284,8 @@ in formats = [ "do" "linode" ]; nixpkgsBranch = "nixos-unstable-small"; deploy = { + autoRollback = true; + magicRollback = true; }; };