Compare commits
No commits in common. "983a1fb0714631d8f556e7bb8a581760121c5cb8" and "96b6b8c9548c3501a4c27104fd11fa1d6b2e1c17" have entirely different histories.
983a1fb071
...
96b6b8c954
12
flake.lock
12
flake.lock
|
@ -1010,11 +1010,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1734126203,
|
"lastModified": 1733376361,
|
||||||
"narHash": "sha256-0XovF7BYP50rTD2v4r55tR5MuBLet7q4xIz6Rgh3BBU=",
|
"narHash": "sha256-aLJxoTDDSqB+/3orsulE6/qdlX6MzDLIITLZqdgMpqo=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "71a6392e367b08525ee710a93af2e80083b5b3e2",
|
"rev": "929116e316068c7318c54eb4d827f7d9756d5e9c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1170,11 +1170,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_9": {
|
"nixpkgs_9": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1734083684,
|
"lastModified": 1732981179,
|
||||||
"narHash": "sha256-5fNndbndxSx5d+C/D0p/VF32xDiJCJzyOqorOYW4JEo=",
|
"narHash": "sha256-F7thesZPvAMSwjRu0K8uFshTk3ZZSNAsXTIFvXBT+34=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "314e12ba369ccdb9b352a4db26ff419f7c49fa84",
|
"rev": "62c435d93bf046a5396f3016472e8f7c8e2aed65",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -5,7 +5,7 @@ let
|
||||||
osu-pkg = with pkgs; with lib;
|
osu-pkg = with pkgs; with lib;
|
||||||
appimageTools.wrapType2 rec {
|
appimageTools.wrapType2 rec {
|
||||||
pname = "osu-lazer-bin";
|
pname = "osu-lazer-bin";
|
||||||
version = "2024.1219.2";
|
version = "2024.1208.0";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage";
|
url = "https://github.com/ppy/osu/releases/download/${version}/osu.AppImage";
|
||||||
hash = "sha256-gRUr7jf0+Xbfz8FurPk/o7F67TYisdNySNzVWEMb1es=";
|
hash = "sha256-gRUr7jf0+Xbfz8FurPk/o7F67TYisdNySNzVWEMb1es=";
|
||||||
|
|
|
@ -3,9 +3,7 @@ let
|
||||||
secrets = config.sops.secrets;
|
secrets = config.sops.secrets;
|
||||||
cfg = config.services.peertube;
|
cfg = config.services.peertube;
|
||||||
|
|
||||||
user = "peertube";
|
|
||||||
host = "peertube.dtth.ch";
|
host = "peertube.dtth.ch";
|
||||||
dataFolder = "/mnt/data/peertube";
|
|
||||||
port = 19878;
|
port = 19878;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -59,6 +57,12 @@ in
|
||||||
settings.client.videos = {
|
settings.client.videos = {
|
||||||
resumable_upload.max_chunk_size = "90MB";
|
resumable_upload.max_chunk_size = "90MB";
|
||||||
};
|
};
|
||||||
|
settings.storage = {
|
||||||
|
storyboards = "/var/lib/peertube/storage/storyboards/";
|
||||||
|
tmp = "/mnt/data/peertube/tmp/";
|
||||||
|
tmp_persistent = "/mnt/data/peertube/tmp_persistent/";
|
||||||
|
web_videos = "/mnt/data/peertube/web-videos/";
|
||||||
|
};
|
||||||
|
|
||||||
# Trust proxy
|
# Trust proxy
|
||||||
settings.trust_proxy = [ "loopback" ] ++ config.services.traefik.staticConfigOptions.entrypoints.https.forwardedHeaders.trustedIPs;
|
settings.trust_proxy = [ "loopback" ] ++ config.services.traefik.staticConfigOptions.entrypoints.https.forwardedHeaders.trustedIPs;
|
||||||
|
@ -76,18 +80,6 @@ in
|
||||||
systemd.services.peertube = {
|
systemd.services.peertube = {
|
||||||
requires = [ "arion-authentik.service" ];
|
requires = [ "arion-authentik.service" ];
|
||||||
after = [ "arion-authentik.service" ];
|
after = [ "arion-authentik.service" ];
|
||||||
unitConfig.RequiresMountsFor = [ dataFolder ];
|
|
||||||
};
|
|
||||||
systemd.tmpfiles.settings."10-peertube" = {
|
|
||||||
# The service hard-codes a lot of paths here, so it's nicer if we just symlink
|
|
||||||
"/var/lib/peertube"."L+" = {
|
|
||||||
argument = dataFolder;
|
|
||||||
};
|
|
||||||
${dataFolder}."d" = {
|
|
||||||
user = user;
|
|
||||||
group = user;
|
|
||||||
mode = "0700";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue