feat: Remove older traces of homeassistant
This commit is contained in:
@@ -1,28 +0,0 @@
|
|||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
environment.systemPackages = [pkgs.arion pkgs.docker-client];
|
|
||||||
virtualisation.docker.enable = lib.mkForce false;
|
|
||||||
virtualisation.podman.enable = true;
|
|
||||||
virtualisation.podman.dockerSocket.enable = true;
|
|
||||||
# users.extraUsers.servius.extraGroups = ["podman"];
|
|
||||||
# networking.firewall.allowedTCPPorts = [21063 21064];
|
|
||||||
# networking.firewall.allowedUDPPorts = [5353];
|
|
||||||
|
|
||||||
virtualisation.arion = {
|
|
||||||
backend = "docker";
|
|
||||||
projects = {
|
|
||||||
homeassistant.settings.services = {
|
|
||||||
homeassistant = {
|
|
||||||
service.image = "ghcr.io/home-assistant/home-assistant:stable";
|
|
||||||
service.volumes = ["/etc/localtime:/etc/localtime:ro" "/run/dbus:/run/dbus:ro" "/var/lib/homeassistant:/config"];
|
|
||||||
service.privileged = true;
|
|
||||||
service.network_mode = "host";
|
|
||||||
service.restart = "unless-stopped";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -5,6 +5,11 @@
|
|||||||
device,
|
device,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
|
virtualisation.oci-containers.backend = "docker";
|
||||||
|
users.extraUsers.servius.extraGroups = ["docker"];
|
||||||
|
networking.firewall.enable = false;
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
sops = {
|
sops = {
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
virtualisation.oci-containers.backend = "docker";
|
||||||
users.extraUsers.servius.extraGroups = ["docker"];
|
users.extraUsers.servius.extraGroups = ["docker"];
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
@@ -12,47 +13,4 @@
|
|||||||
reverse_proxy localhost:8123
|
reverse_proxy localhost:8123
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# environment.systemPackages = [pkgs.arion pkgs.docker pkgs.podman];
|
|
||||||
# virtualisation.podman.enable = true;
|
|
||||||
# virtualisation.podman.dockerSocket.enable = true;
|
|
||||||
# # networking.firewall.allowedTCPPorts = [21063 21064];
|
|
||||||
# # networking.firewall.allowedUDPPorts = [5353];
|
|
||||||
#
|
|
||||||
# virtualisation.arion = {
|
|
||||||
# backend = "podman-socket";
|
|
||||||
# projects = {
|
|
||||||
# homeassistant.settings.services = {
|
|
||||||
# homeassistant = {
|
|
||||||
# service.image = "ghcr.io/home-assistant/home-assistant:stable";
|
|
||||||
# service.volumes = ["/etc/localtime:/etc/localtime:ro" "/run/dbus:/run/dbus:ro" "/var/lib/homeassistant:/config"];
|
|
||||||
# service.privileged = true;
|
|
||||||
# service.network_mode = "host";
|
|
||||||
# service.restart = "unless-stopped";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
}
|
}
|
||||||
# {
|
|
||||||
# virtualisation.podman.enable = true;
|
|
||||||
# virtualisation.podman.dockerSocket.enable = true;
|
|
||||||
# users.extraUsers.servius.extraGroups = ["podman"];
|
|
||||||
# networking.firewall.enable = false;
|
|
||||||
# virtualisation.oci-containers = {
|
|
||||||
# backend = "podman";
|
|
||||||
# containers.homeassistant = {
|
|
||||||
# # environment.TZ = "Asia/Kolkata";
|
|
||||||
# # Note: The image will not be updated on rebuilds, unless the version label changes
|
|
||||||
# image = "ghcr.io/home-assistant/home-assistant:stable";
|
|
||||||
# volumes = ["/etc/localtime:/etc/localtime:ro" "/run/dbus:/run/dbus:ro" "/var/lib/homeassistant:/config"];
|
|
||||||
# extraOptions = [
|
|
||||||
# # Use the host network namespace for all sockets
|
|
||||||
# "--network=host"
|
|
||||||
# # Pass devices into the container, so Home Assistant can discover and make use of them
|
|
||||||
# "--device=/dev/ttyACM0:/dev/ttyACM0"
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# }
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,14 +3,33 @@
|
|||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
|
virtualisation.oci-containers = {
|
||||||
|
containers = {
|
||||||
|
jellyfin = {
|
||||||
|
image = "jellyfin/jellyfin:latest";
|
||||||
|
ports = ["127.0.0.1:8097:8096"];
|
||||||
|
volumes = ["/var/lib/jellyfin:/config"];
|
||||||
|
user = "jellyfin:jellyfin";
|
||||||
|
environment = {
|
||||||
|
TZ = config.time.timeZone;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
users.users.jellyfin = {
|
||||||
|
isSystemUser = true;
|
||||||
|
home = "/var/lib/jellyfin";
|
||||||
|
createHome = true;
|
||||||
|
group = "jellyfin";
|
||||||
|
};
|
||||||
|
users.extraUsers.jellyfin.extraGroups = ["media"];
|
||||||
|
users.groups.jellyfin = {};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
jellyseerr = {
|
jellyseerr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = unstablePkgs.jellyseerr;
|
package = unstablePkgs.jellyseerr;
|
||||||
};
|
};
|
||||||
jellyfin = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
caddy = {
|
caddy = {
|
||||||
virtualHosts."jellyseerr.tsuba.darksailor.dev".extraConfig = ''
|
virtualHosts."jellyseerr.tsuba.darksailor.dev".extraConfig = ''
|
||||||
import hetzner
|
import hetzner
|
||||||
|
|||||||
Reference in New Issue
Block a user