2023-11-28 15:24:57 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
# Sync files between devices
|
|
|
|
|
|
|
|
# services = {
|
|
|
|
# syncthing = {
|
|
|
|
# enable = true;
|
|
|
|
# user = "yoda";
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
syncthing
|
|
|
|
|
2024-01-07 16:12:58 +01:00
|
|
|
# Syncthing integration for GNOME
|
2023-11-28 15:24:57 +01:00
|
|
|
#
|
|
|
|
# Incompatible with my GNOME version.
|
|
|
|
# Seems no longer maintained ...
|
|
|
|
#gnomeExtensions.syncthing-icon
|
2024-01-07 16:12:58 +01:00
|
|
|
#
|
2023-11-28 15:24:57 +01:00
|
|
|
# Actively maintained, already adjusted for GNOME 45.
|
|
|
|
# Did not work properly, see below.
|
2024-01-01 17:06:31 +01:00
|
|
|
gnomeExtensions.syncthing-indicator
|
2023-11-28 15:24:57 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
#
|
|
|
|
# Enable the above GNOME extension.
|
|
|
|
#
|
|
|
|
|
|
|
|
# gnomeExtensions.syncthing-indicator
|
|
|
|
# I had to edit
|
|
|
|
# /home/yoda/.config/systemd/user/syncthing.service
|
|
|
|
# and adjust the path to the syncthing executable.
|
2024-01-01 17:06:31 +01:00
|
|
|
# Then I could start (but not stop) Syncthing throug the extension :D
|
|
|
|
# However, it does still not work properly: It does not detect my folders and the sync status.
|
|
|
|
# But this is still better than nothing ^^
|
2023-11-28 15:24:57 +01:00
|
|
|
|
2024-02-04 14:52:59 +01:00
|
|
|
# TODO: Desktop entry from postmarketOS/droidian to start syncthing user service
|
2024-01-01 17:06:31 +01:00
|
|
|
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
|
|
|
|
dconf.settings = {
|
|
|
|
"org/gnome/shell" = {
|
|
|
|
disable-user-extensions = false;
|
|
|
|
enabled-extensions = [
|
|
|
|
pkgs.gnomeExtensions.syncthing-indicator.extensionUuid
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-11-28 15:24:57 +01:00
|
|
|
}
|