Remove /sbin/request-key symlink

It has not been necessary since december 2019
This commit is contained in:
Charlotte Van Petegem 2022-03-14 18:17:18 +01:00
parent f21a866b3b
commit 6a20194547
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -30,15 +30,6 @@
environment.systemPackages = [ pkgs.keyutils ];
# Remove this once https://github.com/NixOS/nixpkgs/issues/34638 is resolved
# The TL;DR is: the kernel calls out to the hard-coded path of
# /sbin/request-key as part of its CIFS auth process, which of course does
# not exist on NixOS due to the usage of Nix store paths.
system.activationScripts.symlink-requestkey = ''
if [ ! -d /sbin ]; then
mkdir /sbin
fi
ln -sfn /run/current-system/sw/bin/request-key /sbin/request-key
'';
# request-key expects a configuration file under /etc
environment.etc."request-key.conf" = {
text =