so um, i reeeeeeeally dont wanna be that person but…
this? this is NOT fixed. i am still over here with a completely wiped and broken browser… a week ago something terrible happened and people lost their data, and those who installed librewolf afterwards couldnt apply their declarative settings! well… im both.
also that, over there, yeah… sorry, im just really really impatient, i know, i “should be waiting for the may release” or “just use the stable version”… but i CANT. i need this, like, right now… like i had this crazy declarative config that i wrote, only for it to be broken (compiling, but not functional) the next day, you know? it makes me sad…
anyway, as i said in the aforementioned discourse thread, it does, indeed, create a /etc/firefox/policies/policies.json but… it does nothing. at all. and i dont know what to do in this situation. so umm… help?
also, im not sure if programs.firefox.policies supports programs.firefox.policies.Preferences anymore and you should do programs.firefox.preferences instead… this is VEEEEERY confusing…
for example, there people ARE using programs.firefox.policies.Preferences, but… what’s the difference anymore…? mind boggling…
okay okay, okay… BUTTHISDOESNT… sorry, but this doesnt explain… why it no workey? or no workie… ahem, neither policies, nor preferences apply to librewolf?
As explained above, programs.firefox.preferences is just a slightly more convenient way to set programs.firefox.policies.Preferences settings. The end result is the same.
I suspect that librewolf just doesn’t check /etc/firefox/policies/policies.json which is where the nixos module for firefox (programs.firefox) outputs (a symlink to) the policies file. It may look somewhere like /etc/librewolf/ instead.
I’m pretty sure all of your issues stem from using librewolf instead of firefox with this module.
I don’t think the nixpkgs issue you linked is relevant to the issue here either, as that seems to be about the profile path in a users home directory, which the nixos module doesn’t touch.
I’m pretty sure all of your issues stem from using librewolf instead of firefox with this module.
I mean… yes? but it’s not like setting up policies for librewolf with this module didn’t work before. something just broke
I don’t think the nixpkgs issue you linked is relevant to the issue here either, as that seems to be about the profile path in a users home directory, which the nixos module doesn’t touch.
I’m not a nix expert or anything, but the one thing I can say about this is that the policies did work before the bad PR mentioned on the issue got merged.
the only thing that has been fixed is the extension declaration.
WAIT A MINUTE. it just compiled!!! the environment.etc."firefox/policies/policies.json".target = "librewolf/policies/policies.json"; thing worked!!!
what? how? why???
okay guys, it worked. all i did is delete $HOME/.librewolf folder (you probably should back it up), then uninstall librewolf with programs.firefox.enable = false; (which has package = pkgs.librewolf;) - DO NOT keep the symlink uncommented (which is how i got that previous option error), so comment it out, THEN, when everything has been deleted, uncomment the aforementioned symlink, then install librewolf back again with a true…
unless i am only seeing the extensions, let me see what is missing… nevermind, that is actually everything!!!
well. thank you all very much. no idea what to do with this problem, though, i mean it still exists, right? some kind of orphaned symlink?
I wasn’t aware that it was working before. My point was that I wouldn’t expect that it should work, considering the path that it outputs policies.json to.
that is quite a lot of important preferences, guys… i dunno what to say. other than WHY NOT? why wouldnt they work (yes, i know about this)? but what can one do about it? programs.firefox.autoConfig? but whats the point of all these policies (preferences) then, if you couldve just done all of that via autoConfig files and not worry about the restrictions…? i guess this method requires more setup, well, i hope it’s worth it…