mirror of
https://codeberg.org/ultra/nixos-dotfiles.git
synced 2024-11-22 05:43:11 +02:00
slskd and stuff
Signed-off-by: Alex Stan <alex.stan.2010@proton.me> unfuck the merge
This commit is contained in:
parent
22883ed621
commit
93a8040de5
6 changed files with 74 additions and 0 deletions
21
flake.lock
21
flake.lock
|
@ -543,6 +543,26 @@
|
||||||
"type": "github"
|
"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": {
|
"mailserver": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"blobs": "blobs",
|
"blobs": "blobs",
|
||||||
|
@ -900,6 +920,7 @@
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hypr-contrib": "hypr-contrib",
|
"hypr-contrib": "hypr-contrib",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
|
"iceshrimp": "iceshrimp",
|
||||||
"mailserver": "mailserver",
|
"mailserver": "mailserver",
|
||||||
"niri": "niri",
|
"niri": "niri",
|
||||||
"nix-but-gigachad": "nix-but-gigachad",
|
"nix-but-gigachad": "nix-but-gigachad",
|
||||||
|
|
|
@ -57,6 +57,10 @@
|
||||||
niri = {
|
niri = {
|
||||||
url = "github:sodiboo/niri-flake";
|
url = "github:sodiboo/niri-flake";
|
||||||
};
|
};
|
||||||
|
iceshrimp = {
|
||||||
|
url = "git+https://iceshrimp.dev/iceshrimp/packaging";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
outputs = { self, nixpkgs, home-manager, ... }@inputs: {
|
||||||
|
|
|
@ -19,6 +19,8 @@ in {
|
||||||
( import ./services/matrix.nix inputs )
|
( import ./services/matrix.nix inputs )
|
||||||
( import ./services/tor.nix inputs )
|
( import ./services/tor.nix inputs )
|
||||||
( import ./services/navidrome.nix inputs )
|
( import ./services/navidrome.nix inputs )
|
||||||
|
# ( import ./services/iceshrimp.nix inputs )
|
||||||
|
( import ./services/slskd.nix inputs )
|
||||||
# ( import ./services/office.nix inputs )
|
# ( import ./services/office.nix inputs )
|
||||||
# ( import ./services/Sharkey inputs )
|
# ( import ./services/Sharkey inputs )
|
||||||
# ( import ./services/caddy.nix inputs ) # doesn't work
|
# ( import ./services/caddy.nix inputs ) # doesn't work
|
||||||
|
|
21
hosts/titan/services/iceshrimp.nix
Normal file
21
hosts/titan/services/iceshrimp.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
19
hosts/titan/services/slskd.nix
Normal file
19
hosts/titan/services/slskd.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
7
hosts/titan/services/syncthing.nix
Normal file
7
hosts/titan/services/syncthing.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
inputs: { pkgs, ... }: {
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
user = "ultra";
|
||||||
|
dataDir = "/home/ultra/.local/lib/syncthing";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue