diff options
author | Christoph Cullmann <cullmann@kde.org> | 2023-01-16 19:54:58 +0100 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2023-01-16 19:54:58 +0100 |
commit | c92624c9d1a102e807a957074ca65207aa8d1353 (patch) | |
tree | 4ce06f470f4659e80f6aecaafba121acd4d42114 /common.nix | |
parent | 88d9eb51958cd0a289d569d85aab48f108cd9537 (diff) |
less persistent state
Diffstat (limited to 'common.nix')
-rw-r--r-- | common.nix | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -69,9 +69,6 @@ in # some stuff is needed to early for environment.persistence environment.etc = { - # machine-id is used for the journal - "machine-id".source = "/nix/persistent/machine-id"; - # stable host keys "ssh/ssh_host_rsa_key".source = "/nix/persistent/ssh_host_rsa_key"; "ssh/ssh_host_rsa_key.pub".source = "/nix/persistent/ssh_host_rsa_key.pub"; @@ -82,11 +79,11 @@ in # keep some stuff persistent environment.persistence."/nix/persistent" = { directories = [ - # system service persistent data - "/var/lib" + # systemd timers + { directory = "/var/lib/systemd/timers"; user = "root"; group = "root"; mode = "u=rwx,g=rx,o=rx"; } - # our logs - "/var/log" + # clamav database + { directory = "/var/lib/clamav"; user = "clamav"; group = "clamav"; mode = "u=rwx,g=rx,o=rx"; } ]; }; |