Add home-assistant container service
Move home/default into personal.nix and work.nix instead of flake, was pulling in whole desktop config for server and wasting time/space
This commit is contained in:
parent
590db02129
commit
af37c0c34a
|
@ -109,7 +109,6 @@
|
|||
imports = [
|
||||
base16.homeManagerModule
|
||||
{scheme = "${tt-schemes}/base16/one-light.yaml";}
|
||||
./home/default.nix
|
||||
./home/${hostName}.nix
|
||||
];
|
||||
home = {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [./default.nix];
|
||||
home.packages = with pkgs; [kdePackages.ktorrent];
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [./default.nix];
|
||||
home.packages = with pkgs; [
|
||||
twinkle
|
||||
(import ./scripts/ukaea-vpn.nix pkgs)
|
||||
|
|
|
@ -3,9 +3,10 @@
|
|||
./services/caddy.nix
|
||||
./services/forgejo.nix
|
||||
./services/grafana.nix
|
||||
./services/home-assistant.nix
|
||||
./services/minecraft.nix
|
||||
./services/nix-serve.nix
|
||||
./services/radicale.nix
|
||||
# ./services/radicale.nix
|
||||
./services/sshd.nix
|
||||
./services/syncthing.nix
|
||||
# ./services/znc.nix
|
||||
|
@ -16,4 +17,5 @@
|
|||
};
|
||||
users.mutableUsers = false;
|
||||
system.autoUpgrade.operation = "switch";
|
||||
hardware.bluetooth.enable = true;
|
||||
}
|
||||
|
|
12
system/services/home-assistant.nix
Normal file
12
system/services/home-assistant.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{config, ...}: {
|
||||
virtualisation.oci-containers = {
|
||||
backend = "podman";
|
||||
containers.homeassistant = {
|
||||
volumes = ["home-assistant:/config" "/run/dbus:/run/dbus:ro"];
|
||||
environment.TZ = config.time.timeZone;
|
||||
image = "ghcr.io/home-assistant/home-assistant:2024.8.0.dev202407210221";
|
||||
extraOptions = ["--network=host"];
|
||||
};
|
||||
};
|
||||
services.caddy.virtualHosts."home.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:8123";
|
||||
}
|
Loading…
Reference in a new issue