feat: Added homeassistant remote
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
./zerotier.nix
|
||||
./jellyfin.nix
|
||||
./autossh.nix
|
||||
# ./homeassistant.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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user