Refactor nautilus packages

This commit is contained in:
DashieTM 2024-08-27 23:11:39 +02:00
parent 12ec2b44b0
commit a50f970eda

View file

@ -26,30 +26,30 @@
}; };
}; };
config = config = lib.mkIf config.mods.gnome_services.enable (
lib.mkIf config.mods.gnome_services.enable ( lib.optionalAttrs (options ? services.gnome.gnome-keyring) {
lib.optionalAttrs (options ? services.gnome.gnome-keyring) { programs.dconf.enable = true;
programs.dconf.enable = true; services = {
services = { # needed for GNOME services outside of GNOME Desktop
# needed for GNOME services outside of GNOME Desktop dbus.packages = with pkgs; [
dbus.packages = with pkgs; [ gcr
gcr gnome.gnome-settings-daemon
gnome.gnome-settings-daemon ];
];
gnome.gnome-keyring.enable = true; gnome.gnome-keyring.enable = true;
gvfs.enable = true; gvfs.enable = true;
}; };
} }
)
// lib.optionalAttrs (options ? home.packages) { // lib.optionalAttrs (options ? home.packages) {
home.packages = lib.mkIf config.mods.gnome_services.nautilus.enable ( home.packages =
with pkgs; let
[ packages = with pkgs; [
nautilus nautilus
sushi sushi
nautilus-python nautilus-python
] ];
); in
}; lib.mkIf config.mods.nautilus.enable packages;
}
);
} }