From ba811dbc3cdad4f847ff0ec6c061bf8235eb7a1c Mon Sep 17 00:00:00 2001 From: Lulusilly Date: Sat, 18 Oct 2025 18:35:53 -0400 Subject: [PATCH] Configured Syncthing & various other minor changes --- .config/nix/hosts/common.nix | 8 +- .config/nix/hosts/home.nix | 31 +++- .../hosts/syntheticnexus/configuration.nix | 6 +- .config/nix/modules/syncthing.nix | 11 ++ .config/syncthing/cert.pem | 14 ++ .config/syncthing/config.xml | 173 ++++++++++++++++++ .config/syncthing/config.xml.v0 | 173 ++++++++++++++++++ .config/syncthing/https-cert.pem | 14 ++ .config/syncthing/https-key.pem | 6 + .config/syncthing/index-v0.14.0.db/000004.ldb | Bin 0 -> 173 bytes .config/syncthing/index-v0.14.0.db/000005.ldb | Bin 0 -> 346 bytes .config/syncthing/index-v0.14.0.db/000006.log | Bin 0 -> 53 bytes .config/syncthing/index-v0.14.0.db/CURRENT | 1 + .../syncthing/index-v0.14.0.db/CURRENT.bak | 1 + .config/syncthing/index-v0.14.0.db/LOCK | 0 .config/syncthing/index-v0.14.0.db/LOG | 29 +++ .../index-v0.14.0.db/MANIFEST-000007 | Bin 0 -> 216 bytes .config/syncthing/key.pem | 6 + .config/syncthing/syncthing.lock | 0 .config/user-dirs.conf | 1 + 20 files changed, 464 insertions(+), 10 deletions(-) create mode 100644 .config/nix/modules/syncthing.nix create mode 100644 .config/syncthing/cert.pem create mode 100644 .config/syncthing/config.xml create mode 100644 .config/syncthing/config.xml.v0 create mode 100644 .config/syncthing/https-cert.pem create mode 100644 .config/syncthing/https-key.pem create mode 100644 .config/syncthing/index-v0.14.0.db/000004.ldb create mode 100644 .config/syncthing/index-v0.14.0.db/000005.ldb create mode 100644 .config/syncthing/index-v0.14.0.db/000006.log create mode 100644 .config/syncthing/index-v0.14.0.db/CURRENT create mode 100644 .config/syncthing/index-v0.14.0.db/CURRENT.bak create mode 100644 .config/syncthing/index-v0.14.0.db/LOCK create mode 100644 .config/syncthing/index-v0.14.0.db/LOG create mode 100644 .config/syncthing/index-v0.14.0.db/MANIFEST-000007 create mode 100644 .config/syncthing/key.pem create mode 100644 .config/syncthing/syncthing.lock create mode 120000 .config/user-dirs.conf diff --git a/.config/nix/hosts/common.nix b/.config/nix/hosts/common.nix index 79850f8..b828fcf 100644 --- a/.config/nix/hosts/common.nix +++ b/.config/nix/hosts/common.nix @@ -9,11 +9,7 @@ users.users.lunita = { isNormalUser = true; description = "Lunita"; - extraGroups = [ "networkmanager" "wheel" ]; - packages = with pkgs; [ - neovim - firefox - ]; + extraGroups = [ "networkmanager" "wheel" "syncthing" ]; shell = pkgs.zsh; }; home-manager = { @@ -65,8 +61,6 @@ services.flatpak.enable = true; # Tailscale services.tailscale.enable = true; - # Syncthing - services.syncthing.enable = true; # GPG programs.gnupg.agent = { enable = true; diff --git a/.config/nix/hosts/home.nix b/.config/nix/hosts/home.nix index d5bc02a..15a0c11 100644 --- a/.config/nix/hosts/home.nix +++ b/.config/nix/hosts/home.nix @@ -6,6 +6,11 @@ home.stateVersion = "25.05"; + xdg.userDirs = { + enable = true; + createDirectories = true; + }; + programs.zsh = { enable = true; syntaxHighlighting.enable = true; @@ -64,8 +69,30 @@ }; nixpkgs.config.allowUnfree = true; + # Librewolf comes with safe defaults already, so minimal changes are necessary. + programs.librewolf = { + enable = true; + settings = { + "webgl.disabled" = false; + "privacy.clearOnShutdown.history" = false; + "privacy.clearOnShutdown.cookies" = false; + "network.cookie.lifetimePolicy" = 0; + }; + }; + + services.mpd = { + enable = true; + musicDirectory = "/home/lunita/Music"; + extraConfig = '' + audio_output { + type "pipewire" + name "Pipewire Output" + } + ''; + }; + home.packages = with pkgs; [ - tree # Nice file tree views w/permissions + tree # Nice file tree views w/ permissions neofetch # Muh epic r1ce!!! btop # Resource manager stow # For dotfiles deployment. May use home.file in future @@ -80,6 +107,8 @@ ghostty # Terminal emulator irssi # Terminal IRC client nyxt # Customizable browser + rmpc # Rusty Music Player Client + nicotine-plus # FOSS client for SoulSeek # Fonts nerd-fonts.jetbrains-mono miracode diff --git a/.config/nix/hosts/syntheticnexus/configuration.nix b/.config/nix/hosts/syntheticnexus/configuration.nix index f0a7316..971ce07 100644 --- a/.config/nix/hosts/syntheticnexus/configuration.nix +++ b/.config/nix/hosts/syntheticnexus/configuration.nix @@ -1,4 +1,4 @@ -{ config, pkgs, inputs, ... }: +{ config, pkgs, lib, inputs, ... }: { imports = @@ -8,9 +8,11 @@ ../../modules/laptop.nix ../../modules/efi.nix ../../modules/hypr.nix + ../../modules/syncthing.nix ]; networking.hostName = "syntheticnexus"; - + # Overriding this, as the touchpad doesn't work properly anymore. + services.libinput.enable = lib.mkForce false; system.stateVersion = "25.05"; } diff --git a/.config/nix/modules/syncthing.nix b/.config/nix/modules/syncthing.nix new file mode 100644 index 0000000..06dab1a --- /dev/null +++ b/.config/nix/modules/syncthing.nix @@ -0,0 +1,11 @@ +{ config, pkgs, inputs, ... }: + +{ + services.syncthing = { + enable = true; + user = "lunita"; + group = "syncthing"; + dataDir = "/home/lunita/Sync"; + configDir = "/home/lunita/.config/syncthing"; + }; +} diff --git a/.config/syncthing/cert.pem b/.config/syncthing/cert.pem new file mode 100644 index 0000000..eeee6b5 --- /dev/null +++ b/.config/syncthing/cert.pem @@ -0,0 +1,14 @@ +-----BEGIN CERTIFICATE----- +MIICHTCCAaKgAwIBAgIILCaVueFhqaswCgYIKoZIzj0EAwIwSjESMBAGA1UEChMJ +U3luY3RoaW5nMSAwHgYDVQQLExdBdXRvbWF0aWNhbGx5IEdlbmVyYXRlZDESMBAG +A1UEAxMJc3luY3RoaW5nMB4XDTI1MTAxODAwMDAwMFoXDTQ1MTAxMzAwMDAwMFow +SjESMBAGA1UEChMJU3luY3RoaW5nMSAwHgYDVQQLExdBdXRvbWF0aWNhbGx5IEdl +bmVyYXRlZDESMBAGA1UEAxMJc3luY3RoaW5nMHYwEAYHKoZIzj0CAQYFK4EEACID +YgAE5uXkHXpk67XpbU/PrBmOsjhndFUQY1KeyF2Upck+MSvGxKXEIz6JuZZjUIeG +tILxUCgqe+gWUT3zP+6P+IuWuJxdakTzub/UG4Q2Vhf17Qwh2IUN/mfQmTdzCw77 +Ciujo1UwUzAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsG +AQUFBwMCMAwGA1UdEwEB/wQCMAAwFAYDVR0RBA0wC4IJc3luY3RoaW5nMAoGCCqG +SM49BAMCA2kAMGYCMQDLX5HiWVA6sz6r1f7xBd3dpXoify9kE9MUid7LLJBBxezk +OZr1h/YxKW6D8cECVl0CMQD40IIUnPACLOuSRWc6un98Dx9zTEXeZSisPeAWZNGI +4WnuiX4hxQ+Da2nkOT3UmSo= +-----END CERTIFICATE----- diff --git a/.config/syncthing/config.xml b/.config/syncthing/config.xml new file mode 100644 index 0000000..f1ffde6 --- /dev/null +++ b/.config/syncthing/config.xml @@ -0,0 +1,173 @@ + + + basic + + + + 1 + + 3600 + + basic + + 0 + 0 + 0 + random + false + 0 + 0 + 10 + false + false + false + 25 + .stfolder + false + 0 + 2 + false + standard + standard + false + false + false + false + false + false + + 1024 + 4096 + + + +
dynamic
+ false + false + 0 + 0 + 0 + false + 0 + 0 +
+ +
127.0.0.1:8384
+ false + WTcCJ6uJb5wSecz5urdgNt3nQkdjUpyS + default +
+ + + default + default + true + true + 21027 + [ff12::8384]:21027 + 0 + 0 + 60 + true + 10 + true + true + 60 + 30 + 10 + 0 + 0 + + https://data.syncthing.net/newdata + false + 1800 + 12 + false + 24 + false + 5 + false + 1 + https://upgrades.syncthing.net/meta.json + false + 10 + authenticationUserAndPassword + 0 + true + 0 + https://crash.syncthing.net/newcrash + true + 180 + 20 + default + auto + 0 + true + false + false + + 0 + 0 + 10 + 20 + 30 + 40 + 50 + 0 + + + + basic + + + + 1 + + 3600 + + basic + + 0 + 0 + 0 + random + false + 0 + 0 + 10 + false + false + false + 25 + .stfolder + false + 0 + 2 + false + standard + standard + false + false + false + false + false + false + + 1024 + 4096 + + + +
dynamic
+ false + false + 0 + 0 + 0 + false + 0 + 0 +
+ +
+
diff --git a/.config/syncthing/config.xml.v0 b/.config/syncthing/config.xml.v0 new file mode 100644 index 0000000..f1ffde6 --- /dev/null +++ b/.config/syncthing/config.xml.v0 @@ -0,0 +1,173 @@ + + + basic + + + + 1 + + 3600 + + basic + + 0 + 0 + 0 + random + false + 0 + 0 + 10 + false + false + false + 25 + .stfolder + false + 0 + 2 + false + standard + standard + false + false + false + false + false + false + + 1024 + 4096 + + + +
dynamic
+ false + false + 0 + 0 + 0 + false + 0 + 0 +
+ +
127.0.0.1:8384
+ false + WTcCJ6uJb5wSecz5urdgNt3nQkdjUpyS + default +
+ + + default + default + true + true + 21027 + [ff12::8384]:21027 + 0 + 0 + 60 + true + 10 + true + true + 60 + 30 + 10 + 0 + 0 + + https://data.syncthing.net/newdata + false + 1800 + 12 + false + 24 + false + 5 + false + 1 + https://upgrades.syncthing.net/meta.json + false + 10 + authenticationUserAndPassword + 0 + true + 0 + https://crash.syncthing.net/newcrash + true + 180 + 20 + default + auto + 0 + true + false + false + + 0 + 0 + 10 + 20 + 30 + 40 + 50 + 0 + + + + basic + + + + 1 + + 3600 + + basic + + 0 + 0 + 0 + random + false + 0 + 0 + 10 + false + false + false + 25 + .stfolder + false + 0 + 2 + false + standard + standard + false + false + false + false + false + false + + 1024 + 4096 + + + +
dynamic
+ false + false + 0 + 0 + 0 + false + 0 + 0 +
+ +
+
diff --git a/.config/syncthing/https-cert.pem b/.config/syncthing/https-cert.pem new file mode 100644 index 0000000..91174d3 --- /dev/null +++ b/.config/syncthing/https-cert.pem @@ -0,0 +1,14 @@ +-----BEGIN CERTIFICATE----- +MIICKzCCAbGgAwIBAgIIE8FkLXdA3UYwCgYIKoZIzj0EAwIwTzESMBAGA1UEChMJ +U3luY3RoaW5nMSAwHgYDVQQLExdBdXRvbWF0aWNhbGx5IEdlbmVyYXRlZDEXMBUG +A1UEAxMOc3ludGhldGljbmV4dXMwHhcNMjUxMDE4MDAwMDAwWhcNMjgwMTE2MDAw +MDAwWjBPMRIwEAYDVQQKEwlTeW5jdGhpbmcxIDAeBgNVBAsTF0F1dG9tYXRpY2Fs +bHkgR2VuZXJhdGVkMRcwFQYDVQQDEw5zeW50aGV0aWNuZXh1czB2MBAGByqGSM49 +AgEGBSuBBAAiA2IABN2xBVwszWJAacr/8nVnepKo0m99+/4dRmshz7kNCzD7gKKU +zDy1GpGxq1lTFObnxEdZQQZrT80ON56aAhzdpx/iMJzWkCjtKtAPRkvPb9tLbCQy +7r/QckYvPHfu+qwmJqNaMFgwDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsG +AQUFBwMBBggrBgEFBQcDAjAMBgNVHRMBAf8EAjAAMBkGA1UdEQQSMBCCDnN5bnRo +ZXRpY25leHVzMAoGCCqGSM49BAMCA2gAMGUCMQD+XJiPfDRdYqEigQS+Q823XH4z +C+AQToWKlzBKlPO+5KL+BRxlQLKHXVBRMVkVST0CMEuvYQCKLD4v9veJ8bT8JvjE +xlfCVziM60qdRscPy5+btmHBgngJ4rBLequ29BTpww== +-----END CERTIFICATE----- diff --git a/.config/syncthing/https-key.pem b/.config/syncthing/https-key.pem new file mode 100644 index 0000000..c91e036 --- /dev/null +++ b/.config/syncthing/https-key.pem @@ -0,0 +1,6 @@ +-----BEGIN EC PRIVATE KEY----- +MIGkAgEBBDCN0OfS199kfZSvHP3H40EjaqIu0vAh3k/vYGt1veb+0LlUubn4WV3Q +jhTsZmz3lcWgBwYFK4EEACKhZANiAATdsQVcLM1iQGnK//J1Z3qSqNJvffv+HUZr +Ic+5DQsw+4CilMw8tRqRsatZUxTm58RHWUEGa0/NDjeemgIc3acf4jCc1pAo7SrQ +D0ZLz2/bS2wkMu6/0HJGLzx37vqsJiY= +-----END EC PRIVATE KEY----- diff --git a/.config/syncthing/index-v0.14.0.db/000004.ldb b/.config/syncthing/index-v0.14.0.db/000004.ldb new file mode 100644 index 0000000000000000000000000000000000000000..7b5dc1915537163b3e3bca219cd6dba36c7cec39 GIT binary patch literal 173 zcmc~wV36kEN=fp~OfO0-$;{6SOD!tS%+F&KV$fq`FcD#uWXlV#%u6oG$jnO@RACV0 zR8}Z6)U(txVCLr#lwc6xl;CAl;A3E5U|21W@^0fzroj0_wMf*g#QoF)vC zoF+P@H?OTyKW%V^f!B`R!MiB%KdNPL$ xoXci1e}cFO11B>#<9|*@4Tj$!MG%!i7gBl~n7I0x#6YU?7#IauQc}|rOLIzc5{pZMlN0m!LBf0w+ISj4s{RWA04uu- A+W-In literal 0 HcmV?d00001 diff --git a/.config/syncthing/index-v0.14.0.db/CURRENT b/.config/syncthing/index-v0.14.0.db/CURRENT new file mode 100644 index 0000000..875cf23 --- /dev/null +++ b/.config/syncthing/index-v0.14.0.db/CURRENT @@ -0,0 +1 @@ +MANIFEST-000007 diff --git a/.config/syncthing/index-v0.14.0.db/CURRENT.bak b/.config/syncthing/index-v0.14.0.db/CURRENT.bak new file mode 100644 index 0000000..feda7d6 --- /dev/null +++ b/.config/syncthing/index-v0.14.0.db/CURRENT.bak @@ -0,0 +1 @@ +MANIFEST-000000 diff --git a/.config/syncthing/index-v0.14.0.db/LOCK b/.config/syncthing/index-v0.14.0.db/LOCK new file mode 100644 index 0000000..e69de29 diff --git a/.config/syncthing/index-v0.14.0.db/LOG b/.config/syncthing/index-v0.14.0.db/LOG new file mode 100644 index 0000000..93d6424 --- /dev/null +++ b/.config/syncthing/index-v0.14.0.db/LOG @@ -0,0 +1,29 @@ +=============== Oct 18, 2025 (AST) =============== +14:52:54.374481 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +14:52:55.224320 db@open opening +14:52:55.225074 version@stat F·[] S·0B[] Sc·[] +14:52:55.384921 db@janitor F·2 G·0 +14:52:55.384957 db@open done T·160.607985ms +14:52:55.868367 memdb@flush N·18 S·582B +14:52:56.078351 memdb@flush created L0@3 N·18 S·301B "\ndb..ion,v18":"\ndb..ion,v1" +14:52:56.078414 version@stat F·[1] S·301B[301B] Sc·[0.25] +14:52:56.321240 memdb@flush committed F·1 T·452.791556ms +14:52:56.321327 journal@remove removed @1 +14:52:56.321375 table@compaction range L-1 "":"" +14:52:56.321404 table@compaction L0·1 -> L1·0 S·301B Q·18 +14:52:56.526117 table@build created L1@4 N·3 S·173B "\ndb..ion,v18":"\ndb..ion,v16" +14:52:56.526187 version@stat F·[0 1] S·173B[0B 173B] Sc·[0.00 0.00] +14:52:56.802384 table@compaction committed F~ S-128B Ke·0 D·15 T·480.951879ms +14:52:56.802624 table@remove removed @3 +15:01:59.592062 db@close closing +15:01:59.592228 db@close done T·160.537µs +=============== Oct 18, 2025 (AST) =============== +18:32:31.432214 log@legend F·NumFile S·FileSize N·Entry C·BadEntry B·BadBlock Ke·KeyError D·DroppedEntry L·Level Q·SeqNum T·TimeElapsed +18:32:31.514679 version@stat F·[0 1] S·173B[0B 173B] Sc·[0.00 0.00] +18:32:31.514811 db@open opening +18:32:31.515473 journal@recovery F·1 +18:32:31.516312 journal@recovery recovering @2 +18:32:31.770955 memdb@flush created L0@5 N·9 S·346B "\x04de..can,v26":"\npr..ion,v19" +18:32:31.771535 version@stat F·[1 1] S·519B[346B 173B] Sc·[0.25 0.00] +18:32:32.695417 db@janitor F·4 G·0 +18:32:32.695472 db@open done T·1.180631462s diff --git a/.config/syncthing/index-v0.14.0.db/MANIFEST-000007 b/.config/syncthing/index-v0.14.0.db/MANIFEST-000007 new file mode 100644 index 0000000000000000000000000000000000000000..b8f61c2552b5ab5f231160d262637cb98f8c83cb GIT binary patch literal 216 zcmXq)`t|f810$nUPHI_dPD+xVQ)NkNd1i5{bAE0?Vo_pAei0KJGY5+dD}xYMN>W&A zQE_H|9wQ?I7_c+2-eQtqNl8shEX^s&Nh~f2PEO2YlmbgKh;S7YrIx|82tx$P(Za~G dmQk83CCN84y(qCHGd~YzrVzwTWS0p*gaD8?HPrwB literal 0 HcmV?d00001 diff --git a/.config/syncthing/key.pem b/.config/syncthing/key.pem new file mode 100644 index 0000000..d403ef4 --- /dev/null +++ b/.config/syncthing/key.pem @@ -0,0 +1,6 @@ +-----BEGIN EC PRIVATE KEY----- +MIGkAgEBBDD+Sm/Raq6ne9PZoiMspjETAaI8jNmPUvCuUZiNEbP6WtmUApN2NMoK +nv2bG7dxzZCgBwYFK4EEACKhZANiAATm5eQdemTrteltT8+sGY6yOGd0VRBjUp7I +XZSlyT4xK8bEpcQjPom5lmNQh4a0gvFQKCp76BZRPfM/7o/4i5a4nF1qRPO5v9Qb +hDZWF/XtDCHYhQ3+Z9CZN3MLDvsKK6M= +-----END EC PRIVATE KEY----- diff --git a/.config/syncthing/syncthing.lock b/.config/syncthing/syncthing.lock new file mode 100644 index 0000000..e69de29 diff --git a/.config/user-dirs.conf b/.config/user-dirs.conf new file mode 120000 index 0000000..b86c0f9 --- /dev/null +++ b/.config/user-dirs.conf @@ -0,0 +1 @@ +/nix/store/6s4h4bh8znhxx9c1472fr328fzx06lnd-home-manager-files/.config/user-dirs.conf \ No newline at end of file