From c92624c9d1a102e807a957074ca65207aa8d1353 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Mon, 16 Jan 2023 19:54:58 +0100 Subject: [PATCH] less persistent state --- common.nix | 11 ++++------- 1 file 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"; } ]; };