diff --git a/nixos/modules/security/hidepid.nix b/nixos/modules/security/hidepid.nix index 4917327d617c..8f2df380cfe8 100644 --- a/nixos/modules/security/hidepid.nix +++ b/nixos/modules/security/hidepid.nix @@ -20,6 +20,6 @@ with lib; config = mkIf config.security.hideProcessInformation { users.groups.proc.gid = config.ids.gids.proc; - fileSystems."/proc".options = [ "hidepid=2" "gid=${toString config.ids.gids.proc}" ]; + boot.specialFileSystems."/proc".options = [ "hidepid=2" "gid=${toString config.ids.gids.proc}" ]; }; }