diff options
| author | Andreas Stührk <andy@hammerhartes.de> | 2021-02-17 23:25:27 +0100 |
|---|---|---|
| committer | Andreas Stührk <andy@hammerhartes.de> | 2021-02-17 23:25:27 +0100 |
| commit | 98f60ca4baf6cf12688678c7659a2cc39fc64a8a (patch) | |
| tree | cb2a4927d97c2e86f9f1f177621344b9c2d0d7e4 /configuration.nix | |
| parent | 6526294a953141ccfcf6cb41cd9aa67fc4762d8f (diff) | |
Run activation script in syschdemd; don't use custom wrapper dir
Otherwise the activation script fails in the "specialfs" phase.
This happens because NixOS mounts wrapperDir's parent directory as
tmpfs. With "/wrappers" as value, that means "/" would be tried to be
(re-)mounted as tmpfs, and that has little chances of success.
Luckily, a custom value for `wrapperDir` isn't even necessary and was
only done because I grossly misunderstood NixOS's boot process: It calls
the activation script on each boot. As syschdemd is NixOS-WSL's init
replacement, calling the activation script there should be the correct
fix.
Fixes #11
Diffstat (limited to 'configuration.nix')
| -rw-r--r-- | configuration.nix | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/configuration.nix b/configuration.nix index f691981..69d2bd0 100644 --- a/configuration.nix +++ b/configuration.nix @@ -30,11 +30,6 @@ in extraGroups = [ "root" ]; }; - # Described as "it should not be overwritten" in NixOS documentation, - # but it's on /run per default and WSL mounts /run as a tmpfs, hence - # hiding the wrappers. - security.wrapperDir = "/wrappers"; - security.sudo.wheelNeedsPassword = false; # Disable systemd units that don't make sense on WSL |
