From faef61c066eb5dab47bcaf4421a8749942447053 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Thu, 9 Jan 2025 12:03:03 -0500 Subject: [PATCH] Add syncthing --- home-manager/machines/crash/home.nix | 8 ++++++++ home-manager/modules/programs/desktop.nix | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 home-manager/modules/programs/desktop.nix diff --git a/home-manager/machines/crash/home.nix b/home-manager/machines/crash/home.nix index bab9b46..29d578f 100644 --- a/home-manager/machines/crash/home.nix +++ b/home-manager/machines/crash/home.nix @@ -28,6 +28,7 @@ ../../modules/programs/ssh.nix (import ../../modules/programs/emacs.nix { }) ../../modules/programs/fonts.nix + ../../modules/programs/desktop.nix ]; home.username = "nathan"; home.homeDirectory = "/home/nathan/"; @@ -40,6 +41,13 @@ # Machine specific configuration services.emacs.defaultEditor = true; + + systemd.user.targets.tray = { + Unit = { + Description = "Home Manager System Tray"; + Requires = [ "graphical-session-pre.target" ]; + }; + }; } ) ]; diff --git a/home-manager/modules/programs/desktop.nix b/home-manager/modules/programs/desktop.nix new file mode 100644 index 0000000..0647cae --- /dev/null +++ b/home-manager/modules/programs/desktop.nix @@ -0,0 +1,18 @@ +{ + config, + lib, + pkgs, + ... +}: + +{ + home.packages = with pkgs; [ + ]; + + services.syncthing = { + enable = true; + tray = { + enable = true; + }; + }; +}