Nemo: Difference between revisions
mNo edit summary |
Denperidge (talk | contribs) Added set default file manager for NixOS |
||
| Line 9: | Line 9: | ||
=== Set Nemo as default file browser === | === Set Nemo as default file browser === | ||
==== Home-Manager ==== | |||
To set Nemo as the default file browser, [[Default_applications|create a desktop entry]] and set it as a default application using [[Home Manager]]: | To set Nemo as the default file browser, [[Default_applications|create a desktop entry]] and set it as a default application using [[Home Manager]]: | ||
| Line 23: | Line 24: | ||
}; | }; | ||
};}} | };}} | ||
==== NixOS ==== | |||
On NixOS, you don't need to create a nemo.desktop file. Just add the following to your configuration:<syntaxhighlight lang="nixos"># configuration.nix | |||
{ config, pkgs, ... }: | |||
{ | |||
# ... | |||
xdg = { | |||
mime.defaultApplications = { | |||
"inode/directory" = [ "nemo.desktop" ]; | |||
"application/x-gnome-saved-search" = [ "nemo.desktop" ]; | |||
}; | |||
}; | |||
# ... | |||
}</syntaxhighlight> | |||
=== Change the default terminal emulator for Nemo === | === Change the default terminal emulator for Nemo === | ||