slskd and stuff

Signed-off-by: Alex Stan <alex.stan.2010@proton.me>

unfuck the merge
This commit is contained in:
Alex Stan 2024-10-16 08:13:05 +03:00
parent 22883ed621
commit 93a8040de5
6 changed files with 74 additions and 0 deletions

View file

@ -543,6 +543,26 @@
"type": "github"
}
},
"iceshrimp": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1718289195,
"narHash": "sha256-xmkExjsTztXW4/AYb3d3Er6Wwg4r7AVwq7rv9E93+Ec=",
"ref": "refs/heads/dev",
"rev": "746c6319d3425ccfacc906535c67951e161996d9",
"revCount": 47,
"type": "git",
"url": "https://iceshrimp.dev/iceshrimp/packaging"
},
"original": {
"type": "git",
"url": "https://iceshrimp.dev/iceshrimp/packaging"
}
},
"mailserver": {
"inputs": {
"blobs": "blobs",
@ -900,6 +920,7 @@
"home-manager": "home-manager",
"hypr-contrib": "hypr-contrib",
"hyprland": "hyprland",
"iceshrimp": "iceshrimp",
"mailserver": "mailserver",
"niri": "niri",
"nix-but-gigachad": "nix-but-gigachad",

View file

@ -57,6 +57,10 @@
niri = {
url = "github:sodiboo/niri-flake";
};
iceshrimp = {
url = "git+https://iceshrimp.dev/iceshrimp/packaging";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, ... }@inputs: {

View file

@ -19,6 +19,8 @@ in {
( import ./services/matrix.nix inputs )
( import ./services/tor.nix inputs )
( import ./services/navidrome.nix inputs )
# ( import ./services/iceshrimp.nix inputs )
( import ./services/slskd.nix inputs )
# ( import ./services/office.nix inputs )
# ( import ./services/Sharkey inputs )
# ( import ./services/caddy.nix inputs ) # doesn't work

View file

@ -0,0 +1,21 @@
inputs: { pkgs, config, ... }: {
imports = [
inputs.iceshrimp.nixosModules.iceshrimp
];
services.iceshrimp = {
enable = true;
createDb = true;
dbPasswordFile = /var/keys/iceshrimpdbpass;
secretConfig = /var/keys/is_secrets.yml;
settings = {
url = "https://is.phite.ro";
accountDomain = "phite.ro";
port = 3010;
maxNoteLength = 100000;
maxCaptionLength = 8192;
disableHsts = true; # caddy will handle that
clusterLimit = 4;
outgoingAddressFamily = "dual";
};
};
}

View file

@ -0,0 +1,19 @@
inputs: { pkgs, ... }: {
services.slskd = {
enable = true;
environmentFile = /var/keys/slsk.env;
domain = null;
settings = {
web = {
port = 3011;
https.disabled = true;
};
# directories.downloads = "/var/navidrome/music";
shares.directories = [
"/home/ultra/Music"
"/var/navidrome/music"
];
};
};
}

View file

@ -0,0 +1,7 @@
inputs: { pkgs, ... }: {
services.syncthing = {
enable = true;
user = "ultra";
dataDir = "/home/ultra/.local/lib/syncthing";
};
}