308 current 2025-10-11 17:30:56 25.05.20251006.20c4598 6.12.50 *

This commit is contained in:
2025-10-11 17:35:22 -05:00
parent 9fca78ed4c
commit d759a3e747
2 changed files with 62 additions and 63 deletions

View File

@@ -1,6 +1,6 @@
# flake for blakes nixos config # flake for blakes nixos config
# define new devices in outputs # define new devices in outputs
# generation: 307 current 2025-10-11 17:27:31 25.05.20251006.20c4598 6.12.50 * # generation: 308 current 2025-10-11 17:30:56 25.05.20251006.20c4598 6.12.50 *
{ {
description = "blakes nix config"; description = "blakes nix config";
inputs = { inputs = {

View File

@@ -55,47 +55,28 @@ in
extraGroups = []; extraGroups = [];
}; };
# here lies my tough, and I mean fucking tough, swing at # still suss as fuck bro man fuck
# getting this to work bare metal, ggs ill see you again virtualisation.oci-containers.containers = {
# - didnt take long hass = {
# -------------------------------------------------------------------------------- image = "homeassistant/home-assistant:stable";
# enable the ${service} service autoStart = true;
services.${nixservice} = { extraOptions = [
enable = true; "--pull=newer"
package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.home-assistant;
extraComponents = [
# required for onboarding
"analytics"
"google_translate"
"met"
"radio_browser"
"shopping_list"
"isal"
"default_config"
"mqtt"
]; ];
extraPackages = python3Packages: with python3Packages; [ volumes = [
psycopg2 "${cfg.data_dir}:/config"
universal-silabs-flasher
getmac
zha
ha-silabs-firmware-client
paho-mqtt
aiomqtt
aiounifi
ibeacon-ble
]; ];
# imperative config ports = [
config = null; "0.0.0.0:7704:8123"
lovelaceConfig = null; "0.0.0.0:4141:4141"
configDir = cfg.data_dir; ];
# declartive poggers! environment = {
# config = { TZ = homelab.tz;
# # Includes dependencies for a basic setup PUID = toString config.users.users.${service}.uid;
# default_config = {}; PGID = toString config.users.groups.${service}.gid;
# }; };
};
}; };
# override umask to make permissions work out # override umask to make permissions work out
systemd.services.${service}.serviceConfig = { systemd.services.${service}.serviceConfig = {
@@ -144,7 +125,7 @@ in
url = "https://hass.${homelab.base_domain}"; url = "https://hass.${homelab.base_domain}";
error-url = "http://${cfg.url}:${toString cfg.port}"; error-url = "http://${cfg.url}:${toString cfg.port}";
check-url = "http://${homelab.host_ip}:${toString cfg.port}"; check-url = "http://${homelab.host_ip}:${toString cfg.port}";
icon = "di:${service}"; }]; icon = "di:${nixservice}"; }];
# add to backups # add to backups
modules.system.backups.baks = { modules.system.backups.baks = {
@@ -158,27 +139,45 @@ in
# still suss as fuck bro man fuck # here lies my tough, and I mean fucking tough, swing at
# virtualisation.oci-containers.containers = { # getting this to work bare metal, ggs ill see you again
# homeassistant = { # - didnt take long
# image = "homeassistant/home-assistant:stable"; # --------------------------------------------------------------------------------
# autoStart = true; # # enable the ${service} service
# extraOptions = [ # services.${nixservice} = {
# "--pull=newer" # enable = true;
# package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.home-assistant;
# extraComponents = [
# # required for onboarding
# "analytics"
# "google_translate"
# "met"
# "radio_browser"
# "shopping_list"
# "isal"
# "default_config"
# "mqtt"
# ]; # ];
# volumes = [ # extraPackages = python3Packages: with python3Packages; [
# "${cfg.data_dir}:/config" # psycopg2
# universal-silabs-flasher
# getmac
# zha
# ha-silabs-firmware-client
# paho-mqtt
# aiomqtt
# aiounifi
# ibeacon-ble
# ]; # ];
# ports = [ # # imperative config
# "0.0.0.0:7704:8123" # config = null;
# "0.0.0.0:4141:4141" # lovelaceConfig = null;
# ]; # configDir = cfg.data_dir;
# environment = { # # declartive poggers!
# TZ = homelab.tz; ## config = {
# PUID = toString config.users.users.${service}.uid; ## # Includes dependencies for a basic setup
# PGID = toString config.users.groups.${service}.gid; ## default_config = {};
# }; ## };
# };
# }; # };