Trouble configuring security wrapper

I can’t figure out what’s wrong with the syntax. Getting all kinds of errors.

security.wrappers.ubridge = {
source = /run/current-system/sw/bin/ubridge;
owner = “root”;
group = “ubridge”;
permissions = “u+rx,g+rx”;
capabilities = “cap_net_admin,cap_net_raw”;

Maybe instead of

source = /run/current-system/sw/bin/ubridge;


source = "${pkgs.ubridge}/bin/ubridge";

syntax error, unexpected invalid token.
owner= “root”;

it’s complaining about the first quotation mark.

could it be you have a fancy UTF8 quotation mark instead of a regular ASCII quotation mark?

file utility says that configuration.nix file is unicode text, utf-8 text. Do I need to change the file encoding?

I guess you could, but it would likely be simpler to just edit the offending characters.

It would also be interesting to find out how you got into this situation - did you type in this part of your config or did you copy-paste it from elsewhere? From where? What editor are you using?

I retyped the instructions by hand the syntax is correct but now I’m getting:

suid-sgid-wrappers.service: failed with result ‘exit-code’
Failed to start create SUID/SGID wrappers.

(part of the synax was copied from some old nix os forum post, that’s why I was getting syntax errors)