Add home assitant to loki
This commit is contained in:
parent
dff588dc79
commit
a1e0d27c17
1 changed files with 17 additions and 1 deletions
|
|
@ -208,6 +208,7 @@
|
|||
445 # SAMBA
|
||||
139 # SAMBA
|
||||
5357 # SAMBA-WSDD
|
||||
8123 # HOME ASSISTANT
|
||||
8384 # SYNCTHING
|
||||
8385 # SYNCTHING
|
||||
];
|
||||
|
|
@ -225,6 +226,21 @@
|
|||
libvirtd.enable = true;
|
||||
podman.enable = true;
|
||||
virtualbox.host.enable = true;
|
||||
|
||||
oci-containers.containers = {
|
||||
hass = {
|
||||
image = "ghcr.io/home-assistant/home-assistant:stable";
|
||||
environment = {
|
||||
TZ = "Europe/Rome";
|
||||
};
|
||||
extraOptions = [ "--privileged" "--network=host" ];
|
||||
ports = [ "8123:8123" ];
|
||||
volumes = [
|
||||
"/var/lib/hass:/config"
|
||||
"/mnt/raid/condiviso:/media"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ htop kakoune vim tmux ];
|
||||
|
|
@ -240,5 +256,5 @@
|
|||
"experimental-features = nix-command flakes";
|
||||
gc.automatic = true;
|
||||
};
|
||||
system.stateVersion = "21.05";
|
||||
system.stateVersion = "21.11";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue