add back some persistent stuff

This commit is contained in:
Christoph Cullmann 2024-05-30 17:42:54 +02:00
parent ba0f792f75
commit d0dfcd535c

View file

@ -97,6 +97,18 @@ in
depends = [ "/data" ]; 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 # enable fast dbus
services.dbus.implementation = "broker"; services.dbus.implementation = "broker";