midori-config/profiles/persistence.nix
2025-10-19 13:42:52 +02:00

29 lines
656 B
Nix

{ impermanence, ... }:
{
imports = [ impermanence.nixosModules.impermanence ];
environment.persistence."/persistence" = {
directories = [
"/nix"
"/var/lib/nixos"
# Systemd's state directory.
# This is for instance where timers activation times are stored, hence
# why it is desirable for this directory to be persistent.
"/var/lib/systemd"
];
files = [
# The machine ID is not supposed to change across reboots. For instance,
# it's used by journald to filter logs.
"/etc/machine-id"
];
};
fileSystems."/persistence" = {
enable = true;
neededForBoot = true;
};
}