feat: Remove older traces of homeassistant

This commit is contained in:
uttarayan21
2025-07-30 06:58:25 +05:30
parent dab341fc63
commit daa67bc3e6
4 changed files with 28 additions and 74 deletions

View File

@@ -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";
};
};
};
};
}

View File

@@ -5,6 +5,11 @@
device,
...
}: {
virtualisation.docker.enable = true;
virtualisation.oci-containers.backend = "docker";
users.extraUsers.servius.extraGroups = ["docker"];
networking.firewall.enable = false;
nixpkgs.config.allowUnfree = true;
security.sudo.wheelNeedsPassword = false;
sops = {

View File

@@ -4,6 +4,7 @@
...
}: {
virtualisation.docker.enable = true;
virtualisation.oci-containers.backend = "docker";
users.extraUsers.servius.extraGroups = ["docker"];
networking.firewall.enable = false;
services.caddy = {
@@ -12,47 +13,4 @@
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"
# ];
# };
# };
# }

View File

@@ -3,14 +3,33 @@
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 = {
jellyseerr = {
enable = true;
package = unstablePkgs.jellyseerr;
};
jellyfin = {
enable = true;
};
caddy = {
virtualHosts."jellyseerr.tsuba.darksailor.dev".extraConfig = ''
import hetzner