Merge branch 'main' of git.atlanticaweb.fr:alexandre/nixos-config
This commit is contained in:
commit
6463f2dbe0
|
@ -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> {}) ];
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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 ];
|
||||
}
|
||||
|
Loading…
Reference in New Issue