feat: Added multiple services
This commit is contained in:
@@ -18,6 +18,7 @@ builtins.listToAttrs (builtins.map (device: {
|
|||||||
modules =
|
modules =
|
||||||
[
|
[
|
||||||
nur.nixosModules.nur
|
nur.nixosModules.nur
|
||||||
|
inputs.sops-nix.nixosModules.sops
|
||||||
{nixpkgs.overlays = overlays;}
|
{nixpkgs.overlays = overlays;}
|
||||||
./${device.name}/configuration.nix
|
./${device.name}/configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
|||||||
@@ -114,10 +114,7 @@
|
|||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
networking.firewall.allowedTCPPorts = [22 80 443];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
||||||
# Or disable the firewall altogether.
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
# Copy the NixOS configuration file and link it from the resulting system
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
# (/run/current-system/configuration.nix). This is useful in case you
|
||||||
|
|||||||
@@ -10,10 +10,24 @@
|
|||||||
MusicFolder = "/media/music";
|
MusicFolder = "/media/music";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
services.atuin = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
services.nextcloud = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nextcloud30;
|
||||||
|
hostName = "cloud.darksailor.dev";
|
||||||
|
};
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."navidrome.darksailor.dev".extraConfig = ''
|
virtualHosts."music.darksailor.dev".extraConfig = ''
|
||||||
reverse_proxy localhost:4533
|
reverse_proxy localhost:4533
|
||||||
'';
|
'';
|
||||||
|
virtualHosts."atuin.darksailor.dev".extraConfig = ''
|
||||||
|
reverse_proxy localhost:8888
|
||||||
|
'';
|
||||||
|
virtualHosts."cloud.darksailor.dev".extraConfig = ''
|
||||||
|
reverse_proxy localhost:8080
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user