From af1173cd932e952818ef987f201305cc90e47220 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Mon, 15 Jan 2024 13:26:17 +0300 Subject: [PATCH] Simplify owner statements --- hosts/cube/grafana.nix | 11 ++--------- hosts/cube/nextcloud.nix | 11 ++--------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/hosts/cube/grafana.nix b/hosts/cube/grafana.nix index 566279f..7874649 100644 --- a/hosts/cube/grafana.nix +++ b/hosts/cube/grafana.nix @@ -5,15 +5,8 @@ let fqdn = "metrics.${domain}"; in serverSystemConfiguration { - age.secrets."cube/password.grafana" = { - owner = "grafana"; - group = "grafana"; - }; - - age.secrets."cube/password.mail.grafana" = { - owner = "grafana"; - group = "grafana"; - }; + age.secrets."cube/password.grafana".owner = "grafana"; + age.secrets."cube/password.mail.grafana".owner = "grafana"; systemd.services.grafana.requires = [ "postgresql.service" ]; diff --git a/hosts/cube/nextcloud.nix b/hosts/cube/nextcloud.nix index 286dc59..307a5d8 100644 --- a/hosts/cube/nextcloud.nix +++ b/hosts/cube/nextcloud.nix @@ -5,15 +5,8 @@ let fqdn = "cloud.${domain}"; in serverSystemConfiguration { - age.secrets."cube/password.nextcloud" = { - owner = "nextcloud"; - group = "nextcloud"; - }; - - age.secrets."cube/password.mail.nextcloud" = { - owner = "nextcloud"; - group = "nextcloud"; - }; + age.secrets."cube/password.nextcloud".owner = "nextcloud"; + age.secrets."cube/password.mail.nextcloud".owner = "nextcloud"; systemd.services.nextcloud-setup.requires = [ "postgresql.service" ];