From d0dfcd535ce27932f83d5419459668ebd1663335 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Thu, 30 May 2024 17:42:54 +0200 Subject: [PATCH] add back some persistent stuff --- common.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common.nix b/common.nix index 45b8cf4..b0af6bf 100644 --- a/common.nix +++ b/common.nix @@ -97,6 +97,18 @@ in depends = [ "/data" ]; }; + # keep some stuff persistent + environment.persistence."/nix/persistent" = { + hideMounts = true; + directories = [ + # systemd timers + { directory = "/var/lib/systemd/timers"; user = "root"; group = "root"; mode = "u=rwx,g=rx,o=rx"; } + + # alsa state for persistent sound settings + { directory = "/var/lib/alsa"; user = "root"; group = "root"; mode = "u=rwx,g=rx,o=rx"; } + ]; + }; + # enable fast dbus services.dbus.implementation = "broker";