From 9c4716a99242c2f119ab2fe5879bdfa85afc0e7c Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Sun, 16 Mar 2025 17:36:54 -0400 Subject: [PATCH] users/infinidoge: setup unison --- users/infinidoge/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/users/infinidoge/default.nix b/users/infinidoge/default.nix index 49ed655..0d315b0 100644 --- a/users/infinidoge/default.nix +++ b/users/infinidoge/default.nix @@ -38,12 +38,30 @@ in }; }; + services.unison = { + enable = true; + pairs = { + "PrismLauncher" = mkIf (main.networking.hostName != "Infini-DL360") { + roots = [ + "/home/infinidoge/.local/share/PrismLauncher" + "ssh://inx.moe/sync/PrismLauncher" + ]; + commandOptions = { + ignore = [ + "BelowPath cache" + ]; + }; + }; + }; + }; + home.sessionVariables = { KEYID = "0x30E7A4C03348641E"; POP_SMTP_HOST = common.email.smtp.address; POP_SMTP_PORT = common.email.smtp.STARTTLS; POP_SMTP_USERNAME = common.email.withUser "infinidoge"; POP_SMTP_PASSWORD = "$(cat ${secrets.smtp-personal})"; + UNISON = "$HOME/.local/state/unison"; }; home.packages = @@ -55,6 +73,7 @@ in ncdu peaclock pop + unison (lib.optionals (!main.universe.minimal.enable) [ packwiz