From c459e9f75cb1ecbf41bd5023714303a522494018 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 28 Dec 2024 19:41:04 +0100 Subject: re-configure deploy-rs --- .envrc | 9 +++++++++ flake.nix | 9 ++------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 00000000..ed8f9482 --- /dev/null +++ b/.envrc @@ -0,0 +1,9 @@ +if type -P lorri &>/dev/null; then + if test -n "$TMPDIR"; then + export TMPDIR="$(readlink -f $TMPDIR)" + fi + eval "$(lorri direnv --flake .)" +else + echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]' + use nix +fi diff --git a/flake.nix b/flake.nix index e61f528f..5333f1a2 100644 --- a/flake.nix +++ b/flake.nix @@ -162,17 +162,12 @@ ]; }; - checks = builtins.mapAttrs - (system: deployLib: - deployLib.deployChecks self.deploy) - deploy-rs.lib; - deploy = { - remoteBuild = true; - interactiveSudo = true; nodes.linde = { hostname = "linde"; profiles.system = { + user = "root"; + sshUser = "root"; path = deploy-rs.lib.${utils.lib.system.aarch64-linux}.activate.nixos self.nixosConfigurations.linde; }; -- cgit 1.4.1