From 6ef0f74e6a47efdb44e97dfd2affb21834209c8e Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Mon, 8 Jan 2024 09:34:34 +1100 Subject: [PATCH] =?UTF-8?q?=E2=99=BE=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ modules/firefox.nix | 1 + modules/syncthing.nix | 24 ++++++++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 modules/syncthing.nix diff --git a/CHANGELOG.md b/CHANGELOG.md index 94c9bd3..9ea337b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +- Use `syncthing` +- Disabled Firefox Relay prompt - Use garbage collection by default on all systems - Use `enzime` as the default user on `echo` - Removed `diff.age.textconv` diff --git a/modules/firefox.nix b/modules/firefox.nix index 9edd46a..b86088c 100644 --- a/modules/firefox.nix +++ b/modules/firefox.nix @@ -47,6 +47,7 @@ "extensions.pocket.enabled" = false; "browser.newtabpage.activity-stream.showSponsoredTopSites" = false; "app.normandy.enabled" = false; + "signon.firefoxRelay.feature" = "disabled"; "browser.aboutConfig.showWarning" = false; diff --git a/modules/syncthing.nix b/modules/syncthing.nix new file mode 100644 index 0000000..ed5fbf7 --- /dev/null +++ b/modules/syncthing.nix @@ -0,0 +1,24 @@ +{ + nixosModule = { ... }: { + services.syncthing.enable = true; + services.syncthing.guiAddress = "0.0.0.0:8384"; + services.syncthing.settings = { + devices.moto-g5-plus = { + addresses = [ "tcp://moto-g5-plus" ]; + id = "SNFCA4P-6FNPUMD-BI62ZEI-MFRSQRP-OK6IMU2-ZN67HQH-UKPAN5I-OCTSHAU"; + }; + folders."/data/Backup/Signal" = { + id = "7y829-o47k9"; + label = "Signal Backup"; + type = "receiveonly"; + devices = [ "moto-g5-plus" ]; + versioning = { + type = "staggered"; + fsPath = "old"; + # Keep old versions for 14 days + params.maxAge = toString (14 * 24 * 60 * 60); + }; + }; + }; + }; +}