From ad7dd424960ca6a36cc895b7395d9592b26752da Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 19 Mar 2025 00:37:15 -0400 Subject: [PATCH] comments and soulseek work? --- .gitattributes | 1 + configuration.nix | 8 +++--- flake.lock | 18 ++++++------- flake.nix | 4 +++ secrets/slskd_env | Bin 0 -> 157 bytes services/qbittorrent.nix | 15 +++++++++++ services/soulseek.nix | 56 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 90 insertions(+), 12 deletions(-) create mode 100644 secrets/slskd_env create mode 100644 services/soulseek.nix diff --git a/.gitattributes b/.gitattributes index 37dc6c6..89340db 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,3 +7,4 @@ secrets/matrix_reg_token filter=git-crypt diff=git-crypt secrets/owntracks_caddy_auth filter=git-crypt diff=git-crypt secrets/secureboot.tar filter=git-crypt diff=git-crypt secrets/zfs-key filter=git-crypt diff=git-crypt +secrets/slskd_env filter=git-crypt diff=git-crypt diff --git a/configuration.nix b/configuration.nix index 9ea7b67..15cbb9a 100644 --- a/configuration.nix +++ b/configuration.nix @@ -12,6 +12,7 @@ imports = [ ./hardware.nix ./zfs.nix + ./services/postgresql.nix ./services/jellyfin.nix ./services/caddy.nix @@ -23,6 +24,7 @@ ./services/bitmagnet.nix ./services/matrix.nix ./services/owntracks.nix + ./services/soulseek.nix ]; systemd.targets = { @@ -337,9 +339,9 @@ # }; # }; - systemd.tmpfiles.rules = [ - "d /tank/music 775 ${username} users" - ]; + # systemd.tmpfiles.rules = [ + # "d /tank/music 775 ${username} users" + # ]; system.stateVersion = "24.11"; } diff --git a/flake.lock b/flake.lock index 155de25..bdcedc3 100644 --- a/flake.lock +++ b/flake.lock @@ -135,11 +135,11 @@ ] }, "locked": { - "lastModified": 1739757849, - "narHash": "sha256-Gs076ot1YuAAsYVcyidLKUMIc4ooOaRGO0PqTY7sBzA=", + "lastModified": 1742234739, + "narHash": "sha256-zFL6zsf/5OztR1NSNQF33dvS1fL/BzVUjabZq4qrtY4=", "owner": "nix-community", "repo": "home-manager", - "rev": "9d3d080aec2a35e05a15cedd281c2384767c2cfe", + "rev": "f6af7280a3390e65c2ad8fd059cdc303426cbd59", "type": "github" }, "original": { @@ -183,11 +183,11 @@ ] }, "locked": { - "lastModified": 1742003385, - "narHash": "sha256-c9gUL+HaIth47YUZTiXgG3NDhaxriJxHM7a0TEXAuBQ=", + "lastModified": 1742262784, + "narHash": "sha256-a/Knvms22n1Co7TR5uXW+gvpIZcmNWxzm7oUM+Unyok=", "owner": "Infinidoge", "repo": "nix-minecraft", - "rev": "9f51cce843d03d7456b535aeabca87db1012da2c", + "rev": "b72f0bc3698833e2d079fce2edf5bda04d411287", "type": "github" }, "original": { @@ -214,11 +214,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1742139335, - "narHash": "sha256-r8MlAuCJxIYb0fvNLYdVr78f4saYtGyWKj47sEv9chM=", + "lastModified": 1742268799, + "narHash": "sha256-IhnK4LhkBlf14/F8THvUy3xi/TxSQkp9hikfDZRD4Ic=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e1361b38d11a95b86a3663a32201dcd3d6392b7e", + "rev": "da044451c6a70518db5b730fe277b70f494188f1", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index d4805e0..3113d0e 100644 --- a/flake.nix +++ b/flake.nix @@ -53,6 +53,7 @@ zpool_hdds = "hdds"; torrents_path = "/torrents"; services_dir = "/${zpool_ssds}/services"; + music_dir = "/${zpool_ssds}/music"; torrent_group = "media"; # TODO: add checks to make sure none of these collide @@ -65,10 +66,13 @@ owntracks = 3825; gitea = 2283; immich = 2284; + soulseek_web = 5030; + soulseek_listen = 50300; }; https = { certs = services_dir + "/http_certs"; + # TODO! generate website from repo directly using hugo data_dir = services_dir + "/http"; domain = "gardling.com"; wg_ip = "192.168.15.1"; diff --git a/secrets/slskd_env b/secrets/slskd_env new file mode 100644 index 0000000000000000000000000000000000000000..b0fc4661b5140543a548fcd489d05789ab9c8c66 GIT binary patch literal 157 zcmZQ@_Y83kiVO&0I4dRSyfr5~dF6!7duH9)p*wqi`ri}#Qa*S$iY`=ZR-M7G#NeIl z^5Pe*#}?dv8gc$j6@O!j}=u`Ng9pVW+4-}u0{=OP{IcRT;|Fz^1Z#$7z; z!Hk0Vca!|qSS8vVU34Rgxw~FS$uvPP;N?l}^XfGxH~d@dw(WAc)Mmf0(|p9DW;bwo P3py{b