From bd35bb32a9a21bc7b4e993bfd7c44524b1571fb4 Mon Sep 17 00:00:00 2001 From: Jacob Bachmann Date: Tue, 26 Mar 2024 12:47:06 +0100 Subject: [PATCH] feat: add T430 to syncthing --- hosts/IROH/default.nix | 10 ---------- hosts/T430/default.nix | 1 + modules/greetd.nix | 2 +- modules/syncthing.nix | 15 +++++++++++++++ 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/hosts/IROH/default.nix b/hosts/IROH/default.nix index 8670178..baf1293 100755 --- a/hosts/IROH/default.nix +++ b/hosts/IROH/default.nix @@ -4,16 +4,6 @@ networking.hostName = "IROH"; - services.syncthing = { - settings = { - devices = { - IROH = { - id = "PJA2MBA-66PQQEO-5KICONS-FGHDH46-YRV2X5Y-47UUP77-QXI2WNS-R33FPAK"; - }; - }; - }; - }; - bchmnn = { gui = { diff --git a/hosts/T430/default.nix b/hosts/T430/default.nix index 434f0e1..f9d46ac 100755 --- a/hosts/T430/default.nix +++ b/hosts/T430/default.nix @@ -1,5 +1,6 @@ { ... }: { + imports = [ ./hardware.nix ]; networking.hostName = "T430"; diff --git a/modules/greetd.nix b/modules/greetd.nix index 356012d..0bf259e 100644 --- a/modules/greetd.nix +++ b/modules/greetd.nix @@ -58,7 +58,7 @@ enable = gui.greeter.enable; settings = { default_session = { - command = "sway-run --config /etc/greetd/sway-config" + lib.optionals nvidia.enable " --unsupported-gpu"; + command = "sway-run --config /etc/greetd/sway-config" + lib.optionalString nvidia.enable " --unsupported-gpu"; }; }; }; diff --git a/modules/syncthing.nix b/modules/syncthing.nix index cdad3dc..9ec6867 100644 --- a/modules/syncthing.nix +++ b/modules/syncthing.nix @@ -1,9 +1,24 @@ { ... }: { + services.syncthing = { + + }; + services.syncthing = { enable = true; openDefaultPorts = true; + settings = { + devices = { + T430 = { + id = "UGQINNI-SC6F24X-5JE7YTP-LZLORTX-7GQ5NKK-YMRDRPK-JHRTWUV-4ILUJQQ"; + }; + IROH = { + id = "PJA2MBA-66PQQEO-5KICONS-FGHDH46-YRV2X5Y-47UUP77-QXI2WNS-R33FPAK"; + }; + }; + }; + user = "gandalf"; dataDir = "/home/gandalf";