feat: Added homeassistant remote
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
./zerotier.nix
|
./zerotier.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
./autossh.nix
|
./autossh.nix
|
||||||
|
# ./homeassistant.nix
|
||||||
# ./aerospace.nix
|
# ./aerospace.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
28
darwin/shiro/services/homeassistant.nix
Normal file
28
darwin/shiro/services/homeassistant.nix
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
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"];
|
||||||
|
service.privileged = true;
|
||||||
|
service.network_mode = "host";
|
||||||
|
service.restart = "unless-stopped";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
./caddy.nix
|
./caddy.nix
|
||||||
./fail2ban.nix
|
./fail2ban.nix
|
||||||
./gitea.nix
|
./gitea.nix
|
||||||
|
./home-assistant.nix
|
||||||
# ./appflowy.nix
|
# ./appflowy.nix
|
||||||
|
|
||||||
# ./jellyfin.nix
|
# ./jellyfin.nix
|
||||||
@@ -19,7 +20,6 @@
|
|||||||
# ./nextcloud.nix
|
# ./nextcloud.nix
|
||||||
# ./navidrome.nix
|
# ./navidrome.nix
|
||||||
# ./ldap.nix
|
# ./ldap.nix
|
||||||
# ./home-assistant.nix
|
|
||||||
# ./llama.nix
|
# ./llama.nix
|
||||||
# ./nextcloud.nix
|
# ./nextcloud.nix
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -30,8 +30,15 @@
|
|||||||
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
|
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
|
||||||
}
|
}
|
||||||
reverse_proxy localhost:8123
|
reverse_proxy localhost:8123
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
networking.firewall.allowedTCPPorts = [5555 5353 1900 51827 48784 38989 18555];
|
||||||
|
networking.firewall.allowedUDPPorts = [5555];
|
||||||
|
networking.firewall.allowedTCPPortRanges = [
|
||||||
|
{
|
||||||
|
from = 21063;
|
||||||
|
to = 21070;
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user