configurations for my servers and desktops
nix nixos flake dots dotfiles
at main 26 lines 904 B view raw
1{config, ...}: { 2 networking.firewall.allowedTCPPorts = [5030]; 3 4 age.secrets.slskd = { 5 file = ../../../secrets/slskd.age; 6 owner = "slskd"; 7 group = "slskd"; 8 }; 9 10 services.slskd = { 11 enable = true; 12 openFirewall = true; 13 domain = null; 14 environmentFile = config.age.secrets.slskd.path; 15 settings = { 16 shares.directories = ["/srv/media/music"]; 17 soulseek.description = "\n- running on NixOS and slskd\n- all files are compressed from FLAC/WAV to AAC with `fdk-aac -vbr 5` (essentially the best and most transparent AAC you can possibly get)\n- tagged and organized with beets\n\nthey/he | feel free to say hi, i don't check my messages super often though. enjoy the shares, and remember to try and support artists if you can :)"; 18 }; 19 }; 20 21 systemd.tmpfiles.rules = [ 22 "Z /var/lib/slskd 0775 slskd slskd -" 23 ]; 24 25 users.groups.slskd.members = ["devin"]; 26}