diff options
author | hyperfekt <git@hyperfekt.net> | 2020-12-02 00:54:35 +0100 |
---|---|---|
committer | hyperfekt <git@hyperfekt.net> | 2021-05-09 23:21:51 +0200 |
commit | 3e3e763a075cea09e6db7a4ec51aa0e90435f2fe (patch) | |
tree | cb871f610beaff288f905a9071fdaa21d797b518 /nixos/modules/profiles | |
parent | 870fa77ff6eeba7eff8596869b50c4c475033c03 (diff) | |
download | nixpkgs-3e3e763a075cea09e6db7a4ec51aa0e90435f2fe.tar nixpkgs-3e3e763a075cea09e6db7a4ec51aa0e90435f2fe.tar.gz nixpkgs-3e3e763a075cea09e6db7a4ec51aa0e90435f2fe.tar.bz2 nixpkgs-3e3e763a075cea09e6db7a4ec51aa0e90435f2fe.tar.lz nixpkgs-3e3e763a075cea09e6db7a4ec51aa0e90435f2fe.tar.xz nixpkgs-3e3e763a075cea09e6db7a4ec51aa0e90435f2fe.tar.zst nixpkgs-3e3e763a075cea09e6db7a4ec51aa0e90435f2fe.zip |
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.
Diffstat (limited to 'nixos/modules/profiles')
-rw-r--r-- | nixos/modules/profiles/installation-device.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/profiles/installation-device.nix b/nixos/modules/profiles/installation-device.nix index 7dc493fb495..8e3aa20daa6 100644 --- a/nixos/modules/profiles/installation-device.nix +++ b/nixos/modules/profiles/installation-device.nix @@ -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 + ''; }; } |