From 53033e39e3902f194d78c5ff86f78f43143213b5 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Thu, 13 Jun 2024 00:44:20 -0700 Subject: Fix multiple condition syntax --- hosts/darkstar/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'hosts/darkstar/default.nix') diff --git a/hosts/darkstar/default.nix b/hosts/darkstar/default.nix index ae697ca..73f66fa 100644 --- a/hosts/darkstar/default.nix +++ b/hosts/darkstar/default.nix @@ -103,17 +103,21 @@ Type = "oneshot"; }; unitConfig = { - ConditionPathExists = config.sops.secrets."nftables/forward".path; - ConditionPathExists = config.sops.secrets."nftables/ssh".path; - ConditionPathExists = config.sops.secrets."nftables/voip".path; + ConditionPathExists = [ + config.sops.secrets."nftables/forward".path + config.sops.secrets."nftables/ssh".path + config.sops.secrets."nftables/voip".path + ]; }; wantedBy = [ "multi-user.target" ]; }; systemd.paths."nftables-extra" = { pathConfig = { - PathExists = config.sops.secrets."nftables/forward".path; - PathExists = config.sops.secrets."nftables/ssh".path; - PathExists = config.sops.secrets."nftables/voip".path; + PathExists = [ + config.sops.secrets."nftables/forward".path + config.sops.secrets."nftables/ssh".path + config.sops.secrets."nftables/voip".path + ]; }; wantedBy = [ "multi-user.target" ]; }; -- cgit v1.2.3