mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: move to nixvim
This commit is contained in:
parent
ca97476a47
commit
779c3c4098
22 changed files with 772 additions and 57 deletions
|
|
@ -1,6 +1,5 @@
|
|||
_: let
|
||||
hostConfig = {
|
||||
pkgs,
|
||||
tree,
|
||||
modulesPath,
|
||||
...
|
||||
|
|
@ -25,57 +24,12 @@ _: let
|
|||
forgejo
|
||||
forgejo-runner
|
||||
ntfy
|
||||
stream
|
||||
#navidrome
|
||||
postgres
|
||||
web
|
||||
]);
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.numix-icon-theme
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
1935
|
||||
];
|
||||
systemd.services.nginx.serviceConfig.BindPaths = [
|
||||
"/var/www/streamy"
|
||||
];
|
||||
services.nginx = let
|
||||
streamyHome = "/var/www/streamy";
|
||||
in {
|
||||
virtualHosts."stream.kittywit.ch" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
acmeRoot = null;
|
||||
locations = {
|
||||
"/" = {
|
||||
root = streamyHome;
|
||||
};
|
||||
};
|
||||
};
|
||||
appendConfig = ''
|
||||
rtmp {
|
||||
server {
|
||||
listen 1935;
|
||||
chunk_size 4096;
|
||||
application animu {
|
||||
allow publish 100.64.0.0/10;
|
||||
deny publish all;
|
||||
|
||||
live on;
|
||||
record off;
|
||||
hls on;
|
||||
hls_path ${streamyHome}/hls;
|
||||
hls_fragment 3;
|
||||
hls_playlist_length 60;
|
||||
|
||||
dash on;
|
||||
dash_path ${streamyHome}/dash;
|
||||
}
|
||||
}
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
# TODO: Add config.microvm.stateDir to backup schedule?
|
||||
# TODO: figure out updateFlake?
|
||||
#microvm = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue