feat: Added home-assistant docker image for deoxys

This commit is contained in:
uttarayan21
2025-03-04 02:04:39 +05:30
parent 31d797a8a1
commit 0d86918efd
6 changed files with 102 additions and 5 deletions

View File

@@ -24,6 +24,7 @@ builtins.listToAttrs (builtins.map (device: {
home-manager.nixosModules.home-manager
inputs.lanzaboote.nixosModules.lanzaboote
inputs.musnix.nixosModules.musnix
inputs.arion.nixosModules.arion
{
nixpkgs.config.allowUnfree = true;
home-manager = {

View File

@@ -9,6 +9,7 @@
imports = [
# Include the results of the hardware scan.
./deoxys.nix
./services
];
# Bootloader.

View File

@@ -0,0 +1,5 @@
{...}: {
imports = [
./homeassistant.nix
];
}

View File

@@ -0,0 +1,26 @@
{
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"];
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";
};
};
};
};
}