Merge branch 'main' of git.atlanticaweb.fr:alexandre/nixos-config

This commit is contained in:
Alexandre LUCAZEAU 2022-09-22 09:52:59 +02:00
commit 6463f2dbe0
No known key found for this signature in database
GPG Key ID: 3C8ADB07A8217BD3
4 changed files with 39 additions and 2 deletions

View File

@ -6,6 +6,8 @@
./databases.nix
../modules/users.nix
../modules/common.nix
../modules/navidrome.nix
../modules/transmission.nix
../modules/prometheus-node.nix
./agenix.nix
# <agenix/modules/age.nix>
@ -20,7 +22,7 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUA1RW6JwZasspAp8qmFRFnlV5WXjhLfStAAkM+KYLv lucazeau.alexandre@gmail.com"
];
networking.firewall.allowedTCPPorts = [ 80 443 22 9002];
networking.firewall.allowedTCPPorts = [ 80 443 22 9002 4533];
services.qemuGuest.enable = true;
# environment.systemPackages = [ (pkgs.callPackage <agenix/pkgs/agenix.nix> {}) ];

View File

@ -22,7 +22,15 @@ services.nginx = {
forceSSL = true;
## LetsEncrypt
enableACME = true;
};
};
"music.atlanticaweb.fr" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.navidrome.settings.Port}/";
proxyWebsockets = true;
};
};
};
};

12
modules/navidrome.nix Normal file
View File

@ -0,0 +1,12 @@
{ config, pkgs, lib, ... }:
{
services.navidrome = {
enable = true;
settings = {
MusicFolder = "/var/lib/nextcloud/data/alexandre/files/Musique/";
Address = "0.0.0.0";
Port = "4533";
};
};
}

15
modules/transmission.nix Normal file
View File

@ -0,0 +1,15 @@
{ config, pkgs, lib, ... }:
{
services.transmission = {
enable = true;
openFirewall = true;
openRPCPort = true;
settings = {
rpc-bind-address = "0.0.0.0";
rpc-whitelist = "192.168.10.*";
rpc-whitelist-enable = true;
};
};
#networking.firewall.allowedTCPPorts = [ 9091 ];
}