this post was submitted on 25 Jul 2025
10 points (100.0% liked)

Nix / NixOS

2386 readers
1 users here now

Main links

Videos

founded 2 years ago
MODERATORS
 

I want to edit .desktop files of some nixpkgs for customization, but they are located in /run/current-system/sw/share/applications.. and are readable only.

One possible solution would be to copy them to ~/.local/share/applications but duplicating doesnt sit right with me (this would be my last resort tho).

I would prefer to override the parameters I want to change somehow preferably in my configuration.nix only.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] clot27@lemmy.zip 2 points 3 weeks ago (1 children)

Thanks!

What if I want to append an argument which doesnt already exist? does this also allow to modify multiple lines?

[โ€“] Oinks@lemmy.blahaj.zone 1 points 3 weeks ago* (last edited 3 weeks ago)

It understands \n if I recall correctly. You can also write regular bash, use templating tools, etc. Just use the nativeBuildInputs parameter if you need a binary that isn't provided by stdenv.