adding home assistant, ollama, wyoming to laptop
This commit is contained in:
@@ -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 = [];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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 {
|
||||||
@@ -12,8 +18,8 @@
|
|||||||
containers.homeassistant = {
|
containers.homeassistant = {
|
||||||
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";
|
||||||
|
|||||||
Reference in New Issue
Block a user