From 2002a7bb15829c49cf3c00deb49f078f9795d45d Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 7 Sep 2023 17:26:11 +0200 Subject: [PATCH] working Nextcloud integration in Nautilus (Files) --- modules/nextcloud-integration.nix | 33 ++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/modules/nextcloud-integration.nix b/modules/nextcloud-integration.nix index fab9bc6..51df2c8 100644 --- a/modules/nextcloud-integration.nix +++ b/modules/nextcloud-integration.nix @@ -1,20 +1,29 @@ { config, pkgs, ... }: { - users.users.yoda = { - packages = with pkgs; [ - # Nextcloud sync client - nextcloud-client - # Python bindings for Nautilus (GNOME Files) extension API. - gnome.nautilus-python - ]; - }; + environment.systemPackages = with pkgs; [ + # Nextcloud sync client + nextcloud-client + # Python bindings for Nautilus (GNOME Files) extension API. + gnome.nautilus-python + ]; - # environment.sessionVariables.NAUTILUS_4_EXTENSION_DIR = "${config.system.path}/lib/nautilus/extensions-4"; - - # List of directories to be symlinked in /run/current-system/sw. - # -> There will be a symlink at /run/current-system/sw/share/nautilus-python/extensions + # This is not required. + # + #environment.sessionVariables.NAUTILUS_4_EXTENSION_DIR = "${config.system.path}/lib/nautilus/extensions-4"; #environment.pathsToLink = [ # "/share/nautilus-python/extensions" #]; + +# This does not work! +# One has to install nautilus-python as system package! +# +# users.users.yoda = { +# packages = with pkgs; [ +# # Nextcloud sync client +# nextcloud-client +# # Python bindings for Nautilus (GNOME Files) extension API. +# gnome.nautilus-python +# ]; +# }; }