From 990b3ee8a2f649ceb30564158c7f05669c9af13b Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Thu, 22 Jun 2023 23:25:09 +0200 Subject: [PATCH] Allow invoking uterranix with a dirty repo Signed-off-by: Magic_RB --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 1c5da66..0e3b5d4 100644 --- a/flake.nix +++ b/flake.nix @@ -111,8 +111,8 @@ { _module.args.secret = lib'.loadSecrets secret; _module.args.vars = { - flake_rev = self.rev; - flake_sha = self.narHash; + flake_rev = self.rev or (lib'.warn "No flake revision available, do not deploy containers!" ""); + flake_sha = self.narHash or (lib'.warn "No flake nar hash available, do not deploy containers!" ""); flake_ref = "master"; flake_host = "git+https://git.sr.ht/~magic_rb/dotfiles-2.0"; };