aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotgne22020-11-22 18:12:29 -0700
committernotgne22020-11-22 18:12:29 -0700
commit08c6bd8b73489d50a99129a22f559e6197892c23 (patch)
treefe8234bc2bc6072749bc34971a6e13605b2bf92f
parent1795c8aab465606d615b56c73fe2c76112bf5ad7 (diff)
Update `activate.nixos` to take a configuration, not a derivation
-rw-r--r--examples/system/flake.nix4
-rw-r--r--flake.nix2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/system/flake.nix b/examples/system/flake.nix
index 021f9db..bcc841c 100644
--- a/examples/system/flake.nix
+++ b/examples/system/flake.nix
@@ -30,12 +30,12 @@
system = {
sshUser = "admin";
path =
- deploy-rs.lib.x86_64-linux.setActivate self.nixosConfigurations.example-nixos-system.config.system.build.toplevel "./bin/switch-to-configuration switch";
+ deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.example-nixos-system;
user = "root";
};
hello = {
sshUser = "hello";
- path = deploy-rs.lib.x86_64-linux.setActivate self.defaultPackage.x86_64-linux "./bin/activate";
+ path = deploy-rs.lib.x86_64-linux.activate.custom self.defaultPackage.x86_64-linux "./bin/activate";
user = "hello";
};
};
diff --git a/flake.nix b/flake.nix
index a836b3c..d92a60a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -62,7 +62,7 @@
];
};
- nixos = base: custom base "$PROFILE/bin/switch-to-configuration switch";
+ nixos = base: custom base.config.system.build.toplevel "$PROFILE/bin/switch-to-configuration switch";
noop = base: custom base ":";
};