2023-05-26 17:30:37 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
2023-06-02 14:18:30 +02:00
|
|
|
pkgs,
|
2023-05-26 17:30:37 +02:00
|
|
|
...
|
|
|
|
}: {
|
2023-05-31 12:10:21 +02:00
|
|
|
# to allow all users to access hm managed persistent folders
|
|
|
|
programs.fuse.userAllowOther = true;
|
2023-06-01 09:49:01 +02:00
|
|
|
environment.persistence."/state" = {
|
2023-05-26 17:30:37 +02:00
|
|
|
hideMounts = true;
|
|
|
|
|
|
|
|
files = [
|
|
|
|
"/etc/machine-id"
|
|
|
|
"/etc/ssh/ssh_host_ed25519_key"
|
|
|
|
"/etc/ssh/ssh_host_ed25519_key.pub"
|
|
|
|
];
|
2023-06-02 14:18:30 +02:00
|
|
|
directories =
|
|
|
|
[
|
|
|
|
{
|
|
|
|
directory = "/var/lib/nixos";
|
|
|
|
user = "root";
|
|
|
|
group = "root";
|
|
|
|
mode = "0775";
|
|
|
|
}
|
|
|
|
]
|
|
|
|
++ lib.lists.optionals config.hardware.acpilight.enable [
|
|
|
|
"/var/lib/systemd/backlight"
|
|
|
|
];
|
2023-05-26 17:30:37 +02:00
|
|
|
};
|
|
|
|
}
|