Use explicit /run/current-system/sw/bin/nixos-rebuild path instead of 'nixos-rebuild' command to match sudo rules exactly. This resolves 'command not allowed' errors when the command resolves to nix store paths.
Use explicit /run/current-system/sw/bin/nixos-rebuild path instead of 'nixos-rebuild' command to match sudo rules exactly. This resolves 'command not allowed' errors when the command resolves to nix store paths.