options
This commit is contained in:
@@ -93,7 +93,6 @@
|
|||||||
netbird.enable = true;
|
netbird.enable = true;
|
||||||
|
|
||||||
openwebui.enable = true;
|
openwebui.enable = true;
|
||||||
homeassistant.enable = true;
|
|
||||||
|
|
||||||
wyoming = {
|
wyoming = {
|
||||||
enable = false;
|
enable = false;
|
||||||
|
|||||||
@@ -68,10 +68,6 @@
|
|||||||
wyoming = {
|
wyoming = {
|
||||||
enable = mkDefault false;
|
enable = mkDefault false;
|
||||||
};
|
};
|
||||||
|
|
||||||
homeassistant = {
|
|
||||||
enable = mkDefault false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,43 +0,0 @@
|
|||||||
{ config, lib, ... }: {
|
|
||||||
|
|
||||||
options.sysconfig.containers.homeassistant = {
|
|
||||||
enable = lib.options.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = lib.mkIf config.sysconfig.containers.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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{ config, lib, ... }: {
|
{ config, lib, ... }: {
|
||||||
|
|
||||||
options.sysconfig.virtualization.enable = with lib; mkOption {
|
options.sysconfig.virtual-machines.enable = with lib; mkOption {
|
||||||
type = with types; bool;
|
type = with types; bool;
|
||||||
default = false;
|
default = false;
|
||||||
};
|
};
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
(builtins.attrNames dir)
|
(builtins.attrNames dir)
|
||||||
);
|
);
|
||||||
|
|
||||||
config = lib.mkIf config.sysconfig.virtualisation.enable {
|
config = lib.mkIf config.sysconfig.virtual-machines.enable {
|
||||||
programs.virt-manager.enable = true;
|
programs.virt-manager.enable = true;
|
||||||
|
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, lib, ... }: {
|
||||||
|
|
||||||
|
options.sysconfig.virtual-machines.home-assistant = {
|
||||||
|
enable = lib.options.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.sysconfig.virtual-machines.home-assistant.enable {
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user