diff options
Diffstat (limited to 'modules/zrepl.nix')
-rw-r--r-- | modules/zrepl.nix | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/zrepl.nix b/modules/zrepl.nix index cb74082..5bcc17b 100644 --- a/modules/zrepl.nix +++ b/modules/zrepl.nix | |||
@@ -16,15 +16,14 @@ in | |||
16 | }; | 16 | }; |
17 | 17 | ||
18 | config = lib.mkIf cfg.enable { | 18 | config = lib.mkIf cfg.enable { |
19 | secrets.keys = [ | 19 | secrets.keys = { |
20 | { | 20 | "zrepl/zrepl.yml" = { |
21 | dest = "zrepl/zrepl.yml"; | ||
22 | permissions = "0400"; | 21 | permissions = "0400"; |
23 | text = cfg.config; | 22 | text = cfg.config; |
24 | user = config.systemd.services.zrepl.serviceConfig.User or "root"; | 23 | user = config.systemd.services.zrepl.serviceConfig.User or "root"; |
25 | group = config.systemd.services.zrepl.serviceConfig.Group or "root"; | 24 | group = config.systemd.services.zrepl.serviceConfig.Group or "root"; |
26 | } | 25 | }; |
27 | ]; | 26 | }; |
28 | services.filesWatcher.zrepl = { | 27 | services.filesWatcher.zrepl = { |
29 | restart = true; | 28 | restart = true; |
30 | paths = [ config.secrets.fullPaths."zrepl/zrepl.yml" ]; | 29 | paths = [ config.secrets.fullPaths."zrepl/zrepl.yml" ]; |