adding home assistant, ollama, wyoming to laptop

This commit is contained in:
2025-01-27 16:16:13 -06:00
parent 35b9591c06
commit d509a5313e
2 changed files with 28 additions and 6 deletions

View File

@@ -13,7 +13,6 @@
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
#allowBroken = true;
}; };
# Bootloader. # Bootloader.
@@ -57,6 +56,13 @@
pulseaudio.enable = false; pulseaudio.enable = false;
}; };
virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [
docker
docker-compose
];
sysconfig.opts = { sysconfig.opts = {
sddm.enable = true; sddm.enable = true;
openssh.enable = false; openssh.enable = false;
@@ -66,8 +72,17 @@
hyprland.enable = true; hyprland.enable = true;
git.enable = true; git.enable = true;
nh.enable = true; nh.enable = true;
ollama.enable = true;
wyoming.enable = true;
virtualization.homeassistant = {
enable = true;
configvol = "/etc/homeassistant/config:/config";
};
}; };
home-manager = { home-manager = {
backupFileExtension = "backup"; backupFileExtension = "backup";
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
@@ -158,6 +173,7 @@
extraGroups = [ extraGroups = [
"wheel" "wheel"
"podman" "podman"
"docker"
]; # Enable sudo for the user. ]; # Enable sudo for the user.
openssh.authorizedKeys.keys = []; openssh.authorizedKeys.keys = [];
}; };

View File

@@ -1,8 +1,14 @@
{ config, lib, ... }: { { config, lib, ... }: {
options.sysconfig.opts.virtualization.homeassistant.enable = lib.mkOption { options.sysconfig.opts.virtualization.homeassistant = {
type = lib.types.bool; enable = lib.options.mkOption {
default = false; type = lib.types.bool;
default = false;
};
configvol = lib.options.mkOption {
type = lib.types.str;
default = "/ssd1/Home-Assistant/data:/config";
};
}; };
config = lib.mkIf config.sysconfig.opts.virtualization.homeassistant.enable { config = lib.mkIf config.sysconfig.opts.virtualization.homeassistant.enable {
@@ -13,7 +19,7 @@
autoStart = true; autoStart = true;
ports = [ "8123:8123" ]; ports = [ "8123:8123" ];
volumes = [ volumes = [
"/ssd1/Home-Assistant/data:/config" config.sysconfig.opts.virtualization.homeassistant.configvol
"/run/dbus:/run/dbus:ro" "/run/dbus:/run/dbus:ro"
]; ];
environment.TZ = "America/Chicago"; environment.TZ = "America/Chicago";