less persistent state
This commit is contained in:
parent
88d9eb5195
commit
c92624c9d1
11
common.nix
11
common.nix
|
@ -69,9 +69,6 @@ in
|
||||||
|
|
||||||
# some stuff is needed to early for environment.persistence
|
# some stuff is needed to early for environment.persistence
|
||||||
environment.etc = {
|
environment.etc = {
|
||||||
# machine-id is used for the journal
|
|
||||||
"machine-id".source = "/nix/persistent/machine-id";
|
|
||||||
|
|
||||||
# stable host keys
|
# stable host keys
|
||||||
"ssh/ssh_host_rsa_key".source = "/nix/persistent/ssh_host_rsa_key";
|
"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";
|
"ssh/ssh_host_rsa_key.pub".source = "/nix/persistent/ssh_host_rsa_key.pub";
|
||||||
|
@ -82,11 +79,11 @@ in
|
||||||
# keep some stuff persistent
|
# keep some stuff persistent
|
||||||
environment.persistence."/nix/persistent" = {
|
environment.persistence."/nix/persistent" = {
|
||||||
directories = [
|
directories = [
|
||||||
# system service persistent data
|
# systemd timers
|
||||||
"/var/lib"
|
{ directory = "/var/lib/systemd/timers"; user = "root"; group = "root"; mode = "u=rwx,g=rx,o=rx"; }
|
||||||
|
|
||||||
# our logs
|
# clamav database
|
||||||
"/var/log"
|
{ directory = "/var/lib/clamav"; user = "clamav"; group = "clamav"; mode = "u=rwx,g=rx,o=rx"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue