From 83bf3f21d56ef8bff4759cc76b0c22c4c6125715 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Fri, 28 Jul 2023 06:52:36 +0200 Subject: [PATCH] nix: setup syncthing, adapt open-messaging script --- i3/i3/scripts/open-messaging | 11 +++++++++++ nix/configuration.nix | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/i3/i3/scripts/open-messaging b/i3/i3/scripts/open-messaging index fec8f71..1e37de3 100755 --- a/i3/i3/scripts/open-messaging +++ b/i3/i3/scripts/open-messaging @@ -19,6 +19,16 @@ start_program() } i3-msg 'workspace 9; append_layout ~/.config/i3/workspace-chat-schildi-tele-rocket.json' +{{#if dotter.packages.nix}} +start_program schildichat-desktop +sleep 0.1 +start_program telegram-desktop +sleep 0.1 +start_program rocketchat-desktop +sleep 0.1 +start_program thunderbird +sleep 0.1 +{{else}} start_program chat.schildi.desktop sleep 0.1 start_program telegram-desktop @@ -27,3 +37,4 @@ start_program chat.rocket.RocketChat sleep 0.1 start_program thunderbird sleep 0.1 +{{/if}} diff --git a/nix/configuration.nix b/nix/configuration.nix index 30fb78d..5974208 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -270,6 +270,7 @@ sqlite nomacs + rocketchat-desktop ]; nixpkgs.overlays = [ @@ -304,6 +305,10 @@ # Enable the OpenSSH daemon. services.openssh.enable = false; + services.syncthing.enable = true; + services.syncthing.user = "julian"; + services.syncthing.group = "julian"; + # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];