feat(nautilus): Use cosmic-files instead of nautilus

This commit is contained in:
ulic-youthlic 2025-09-12 20:42:21 +08:00
parent 1fdfc2dfc5
commit edad727d17
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
3 changed files with 30 additions and 9 deletions

View file

@ -17,14 +17,23 @@ in
enable = true; enable = true;
platformTheme = "qt5ct"; platformTheme = "qt5ct";
}; };
environment.systemPackages = with pkgs; [ # Enabled to support trash of nautilus
services.gvfs.enable = true;
environment = {
pathsToLink = [ "share/thumbnailers" ];
systemPackages = with pkgs; [
nautilus
nautilus-open-any-terminal
libheif
libheif.out
bluez bluez
cosmic-files
kdePackages.qt6ct kdePackages.qt6ct
libsForQt5.qt5ct libsForQt5.qt5ct
xwayland-satellite-unstable xwayland-satellite-unstable
evince evince
]; ];
};
xdg = { xdg = {
terminal-exec = { terminal-exec = {
enable = true; enable = true;
@ -39,7 +48,7 @@ in
"org.gnome.Evince.desktop" "org.gnome.Evince.desktop"
]; ];
"inode/directory" = [ "inode/directory" = [
"com.system76.CosmicFiles.desktop" "org.gnome.Nautilus.desktop"
]; ];
"x-scheme-handler/about" = [ "x-scheme-handler/about" = [
"firefox-beta.desktop" "firefox-beta.desktop"

View file

@ -15,6 +15,7 @@ in
./cliphist.nix ./cliphist.nix
./zulip.nix ./zulip.nix
./spotifyd.nix ./spotifyd.nix
./nautilus.nix
# Nur # Nur
./nur.nix ./nur.nix

View file

@ -0,0 +1,11 @@
{ ... }:
_final: prev: {
nautilus = prev.nautilus.overrideAttrs (nprev: {
buildInputs =
(nprev.buildInputs or [ ])
++ (with prev.gst_all_1; [
gst-plugins-good
gst-plugins-bad
]);
});
}