From 709ec2f0d0b7578d8868095e17baa2f8fcd02be6 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Wed, 22 Nov 2023 21:32:50 +0100 Subject: [PATCH] Require sops for systemctl --- nixos/queen/nextcloud.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nixos/queen/nextcloud.nix b/nixos/queen/nextcloud.nix index 04399af..4cf034b 100644 --- a/nixos/queen/nextcloud.nix +++ b/nixos/queen/nextcloud.nix @@ -59,7 +59,6 @@ dbname = "NC"; dbpassFile = config.sops.secrets."nextclouddb".path; - #TODO: work with sops to set this instead of a file & make sure the db setup is the same as on the previous server for easy migration adminpassFile = config.sops.secrets."nextcloudadmin".path; adminuser = "gladtherescake"; }; @@ -114,7 +113,7 @@ }; systemd.services."nextcloud-setup" = { - requires = ["mysql.service"]; - after = ["mysql.service"]; + requires = ["mysql.service" "sops-nix.service"]; + after = ["mysql.service" "sops-nix.service"]; }; }