feat: Added multiple services

This commit is contained in:
uttarayan21
2024-11-20 15:58:35 +02:00
parent c529435caf
commit b56d9b148a
3 changed files with 17 additions and 5 deletions

View File

@@ -114,10 +114,7 @@
services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
networking.firewall.allowedTCPPorts = [22 80 443];
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you

View File

@@ -10,10 +10,24 @@
MusicFolder = "/media/music";
};
};
services.atuin = {
enable = true;
};
services.nextcloud = {
enable = true;
package = pkgs.nextcloud30;
hostName = "cloud.darksailor.dev";
};
services.caddy = {
enable = true;
virtualHosts."navidrome.darksailor.dev".extraConfig = ''
virtualHosts."music.darksailor.dev".extraConfig = ''
reverse_proxy localhost:4533
'';
virtualHosts."atuin.darksailor.dev".extraConfig = ''
reverse_proxy localhost:8888
'';
virtualHosts."cloud.darksailor.dev".extraConfig = ''
reverse_proxy localhost:8080
'';
};
}