summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2023-01-16 19:54:58 +0100
committerChristoph Cullmann <cullmann@kde.org>2023-01-16 19:54:58 +0100
commitc92624c9d1a102e807a957074ca65207aa8d1353 (patch)
tree4ce06f470f4659e80f6aecaafba121acd4d42114
parent88d9eb51958cd0a289d569d85aab48f108cd9537 (diff)
less persistent state
-rw-r--r--common.nix11
1 files changed, 4 insertions, 7 deletions
diff --git a/common.nix b/common.nix
index 63da7a3..77bc8b0 100644
--- a/common.nix
+++ b/common.nix
@@ -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"; }
];
};