mirror of
https://codeberg.org/privacy1st/nix-git
synced 2025-01-11 05:06:05 +01:00
syncthing client: install with home-manager
This commit is contained in:
parent
6bdf08a2be
commit
0b316d9854
@ -1,7 +1,11 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
# Sync files between devices
|
# Sync files between devices
|
||||||
|
#
|
||||||
|
# Web interface: http://127.0.0.1:8384/
|
||||||
|
|
||||||
|
# Alternative: GNOME shell extension
|
||||||
|
# Alternative: System service
|
||||||
# services = {
|
# services = {
|
||||||
# syncthing = {
|
# syncthing = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
@ -9,43 +13,10 @@
|
|||||||
# };
|
# };
|
||||||
# };
|
# };
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
# We run Syncthing as user service.
|
||||||
syncthing
|
|
||||||
|
|
||||||
# Syncthing integration for GNOME
|
|
||||||
#
|
|
||||||
# Incompatible with my GNOME version.
|
|
||||||
# Seems no longer maintained ...
|
|
||||||
#gnomeExtensions.syncthing-icon
|
|
||||||
#
|
|
||||||
# Actively maintained, already adjusted for GNOME 45.
|
|
||||||
# Did not work properly, see below.
|
|
||||||
gnomeExtensions.syncthing-indicator
|
|
||||||
];
|
|
||||||
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
# 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 ^^
|
|
||||||
|
|
||||||
# TODO: Desktop entry from postmarketOS/droidian to start syncthing user service
|
|
||||||
|
|
||||||
programs.dconf.enable = true;
|
|
||||||
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
|
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
|
||||||
dconf.settings = {
|
services.syncthing = {
|
||||||
"org/gnome/shell" = {
|
enable = true;
|
||||||
disable-user-extensions = false;
|
|
||||||
enabled-extensions = [
|
|
||||||
pkgs.gnomeExtensions.syncthing-indicator.extensionUuid
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user