nixos/systemd: enable systemd-pstore.service

As described in issue #81138, the Install section of upstream units is
currently ignored, so we make it part of the sysinit.target manually.
This commit is contained in:
hyperfekt
2021-05-09 23:21:51 +02:00
parent 870fa77ff6
commit 3e3e763a07
3 changed files with 16 additions and 0 deletions
@@ -99,5 +99,13 @@ with lib;
# because we have the firewall enabled. This makes installs from the
# console less cumbersome if the machine has a public IP.
networking.firewall.logRefusedConnections = mkDefault false;
# Prevent installation media from evacuating persistent storage, as their
# var directory is not persistent and it would thus result in deletion of
# those entries.
environment.etc."systemd/pstore.conf".text = ''
[PStore]
Unlink=no
'';
};
}