lol

nfs-utils: set /etc/krb5.keytab as default path for rpc-gssd

Currently the `rpc-gssd.service` has a `ConditionPathExists` clause that can
never be met, because it's looking for stateful data inside `/nix/store`.

`auth-rpcgss-module.service` also only starts if this file exists.

Fixes NixOS/nixpkgs#29509.

authored by

Ruben Maher and committed by
Jörg Thalheim
98a23161 eb2f321e

+7 -1
+6
nixos/modules/tasks/filesystems/nfs.nix
··· 85 enable = mkDefault false; 86 }; 87 88 systemd.services.rpc-gssd = 89 { restartTriggers = [ nfsConfFile ]; 90 }; 91 92 systemd.services.rpc-statd =
··· 85 enable = mkDefault false; 86 }; 87 88 + systemd.services.auth-rpcgss-module = 89 + { 90 + unitConfig.ConditionPathExists = [ "" "/etc/krb5.keytab" ]; 91 + }; 92 + 93 systemd.services.rpc-gssd = 94 { restartTriggers = [ nfsConfFile ]; 95 + unitConfig.ConditionPathExists = [ "" "/etc/krb5.keytab" ]; 96 }; 97 98 systemd.services.rpc-statd =
+1 -1
pkgs/os-specific/linux/nfs-utils/default.nix
··· 39 sed -i "s,^PATH=.*,PATH=$out/bin:${statdPath}," utils/statd/start-statd 40 41 configureFlags="--with-start-statd=$out/bin/start-statd $configureFlags" 42 - 43 substituteInPlace systemd/nfs-utils.service \ 44 --replace "/bin/true" "${coreutils}/bin/true" 45
··· 39 sed -i "s,^PATH=.*,PATH=$out/bin:${statdPath}," utils/statd/start-statd 40 41 configureFlags="--with-start-statd=$out/bin/start-statd $configureFlags" 42 + 43 substituteInPlace systemd/nfs-utils.service \ 44 --replace "/bin/true" "${coreutils}/bin/true" 45