diff options
| author | tv <tv@krebsco.de> | 2026-12-01 00:51:48 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-01 00:51:48 +0000 |
| commit | 683e2128a5d00bcadea7cc2f71a48253032632a5 (patch) | |
| tree | 7d6804eb4908079db1309ae895fb265352a4cca2 /nix | |
| parent | f994019c242ecb097a8fdabc7650f00721dddf10 (diff) | |
enstate: the state directory is root's
The receptor makes the state directory 0700 whoever created it (a
deploy copying into incoming/, say), and the module has tmpfiles keep it
so.
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/module.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nix/module.nix b/nix/module.nix index d2f54c8..62f4222 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -323,6 +323,9 @@ in environment.etc."enstate/schema.json".source = schemaFile; environment.etc."enstate/config.json".source = settings; + # Root's, whatever creates it first (a deploy copying into incomingDir, say). + systemd.tmpfiles.rules = [ "d ${cfg.stateDir} 0700 root root -" ]; + # At boot, and after a switch that changes the schema: the views of this # generation, from the snapshots, and the reactions of those that changed. systemd.services.enstate = { |
