Testing Icecast maybe

This commit is contained in:
Jimbo 2024-08-26 20:45:07 -04:00
parent 0060e25fde
commit 79ed68cd04
5 changed files with 36 additions and 2 deletions

View file

@ -2,7 +2,10 @@
imports = [ imports = [
# Base configs # Base configs
./modules/base.nix ./modules/base.nix
# Import users and groups
./users/jimbo.nix ./users/jimbo.nix
./users/groups.nix
# Desktop only # Desktop only
./desktop/misc.nix ./desktop/misc.nix

Binary file not shown.

View file

@ -2,11 +2,12 @@
imports = [ imports = [
# Base configs # Base configs
./modules/base.nix ./modules/base.nix
./users/jimbo.nix
# Import more users # Import users and groups
./users/jimbo.nix
./users/nextcloud.nix ./users/nextcloud.nix
./users/nginx.nix ./users/nginx.nix
./users/groups.nix
# Modules # Modules
./modules/security.nix ./modules/security.nix

24
nixos/server/icecast.nix Normal file
View file

@ -0,0 +1,24 @@
let
secrets = import ../modules/secrets.nix;
in {
# Icecast, replacing Azuracast maybe
services = {
icecast = {
enable = true;
listen.port = 265;
hostname = "icecast.${secrets.jimDomain}";
admin = {
user = "jimbo";
password = "${secrets.castPass}";
};
};
nginx.virtualHosts."icecast.${secrets.jimDomain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:265";
proxyWebsockets = true;
};
};
};
}

6
nixos/users/groups.nix Normal file
View file

@ -0,0 +1,6 @@
{
# Define custom groups
users.groups = {
nfsShare = {};
};
}