reorganize
This commit is contained in:
43
system/virtualization/containers/homeassistant/default.nix
Normal file
43
system/virtualization/containers/homeassistant/default.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ config, lib, ... }: {
|
||||
|
||||
options.sysconfig.virtualization.homeassistant = {
|
||||
enable = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.virtualization.homeassistant.enable {
|
||||
|
||||
containers.home-assistant = {
|
||||
|
||||
autoStart = true;
|
||||
privateNetwork = true;
|
||||
hostAddress = "192.168.100.10";
|
||||
localAddress = "192.168.100.25";
|
||||
|
||||
config = {
|
||||
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
|
||||
openFirewall = true;
|
||||
|
||||
extraComponents = [
|
||||
"wyoming"
|
||||
"ollama"
|
||||
];
|
||||
|
||||
config = {
|
||||
homeassistant.unit_system = "us_customary";
|
||||
};
|
||||
|
||||
configWritable = true;
|
||||
|
||||
};
|
||||
|
||||
system.stateVersion = "25.05";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user