Testing Icecast maybe
This commit is contained in:
parent
0060e25fde
commit
79ed68cd04
|
@ -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.
|
@ -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
24
nixos/server/icecast.nix
Normal 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
6
nixos/users/groups.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
# Define custom groups
|
||||||
|
users.groups = {
|
||||||
|
nfsShare = {};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue