diff options
-rw-r--r-- | .envrc | 9 | ||||
-rw-r--r-- | flake.nix | 9 |
2 files changed, 11 insertions, 7 deletions
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; }; |