From 430b55075fea99ffc6059bad1b30ffd1aca5f3f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madeleine=20Sydney=20=C5=9Alaga?= Date: Mon, 8 Sep 2025 10:50:34 -0600 Subject: [PATCH] feat(syncthing): init msyds --- modules/home/users/msyds/syncthing.nix | 36 ++++++++++++++++++++++++++ users/msyds/default.nix | 5 +--- 2 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 modules/home/users/msyds/syncthing.nix diff --git a/modules/home/users/msyds/syncthing.nix b/modules/home/users/msyds/syncthing.nix new file mode 100644 index 0000000..3e408fd --- /dev/null +++ b/modules/home/users/msyds/syncthing.nix @@ -0,0 +1,36 @@ +{ config, lib, pkgs, ... }: + +let cfg = config.sydnix.users.msyds.syncthing; +in { + options.sydnix.users.msyds.syncthing = { + enable = lib.mkEnableOption "Syncthing"; + }; + + config = lib.mkIf cfg.enable { + sydnix.syncthing = { + enable = true; + includeDevices = [ + "sydpc" + "deertopia" + ]; + directories = { + "org" = { + path = "~/org"; + devices = [ + "deertopia" + "sydpc" + ]; + ignorePerms = true; + }; + "Music" = { + path = "~/Music"; + devices = [ + "deertopia" + "sydpc" + ]; + ignorePerms = true; + }; + }; + }; + }; +} diff --git a/users/msyds/default.nix b/users/msyds/default.nix index 3637621..758a6e7 100644 --- a/users/msyds/default.nix +++ b/users/msyds/default.nix @@ -19,10 +19,6 @@ home.file.".ssh/id_ed25519.pub".source = ../../public-keys/ssh/crumb-at-nixos-testbed.pub; - # A few settings without a home: - xdg.enable = true; - home.preferXdgDirectories = true; - home.packages = []; fonts.fontconfig.enable = true; @@ -40,6 +36,7 @@ users.msyds = { emacs.enable = true; impermanence.enable = true; + syncthing.enable = true; }; };