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,48 +55,29 @@ 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 = [ volumes = [
# required for onboarding "${cfg.data_dir}:/config"
"analytics" ];
"google_translate" ports = [
"met" "0.0.0.0:7704:8123"
"radio_browser" "0.0.0.0:4141:4141"
"shopping_list" ];
"isal" environment = {
"default_config" TZ = homelab.tz;
"mqtt" PUID = toString config.users.users.${service}.uid;
]; PGID = toString config.users.groups.${service}.gid;
extraPackages = python3Packages: with python3Packages; [ };
psycopg2 };
universal-silabs-flasher
getmac
zha
ha-silabs-firmware-client
paho-mqtt
aiomqtt
aiounifi
ibeacon-ble
];
# imperative config
config = null;
lovelaceConfig = null;
configDir = cfg.data_dir;
# declartive poggers!
# config = {
# # Includes dependencies for a basic setup
# default_config = {};
# };
}; };
# override umask to make permissions work out # override umask to make permissions work out
systemd.services.${service}.serviceConfig = { systemd.services.${service}.serviceConfig = {
UMask = lib.mkForce "0007"; UMask = lib.mkForce "0007";
@@ -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;
# volumes = [ # extraComponents = [
# "${cfg.data_dir}:/config" # # required for onboarding
# ]; # "analytics"
# ports = [ # "google_translate"
# "0.0.0.0:7704:8123" # "met"
# "0.0.0.0:4141:4141" # "radio_browser"
# ]; # "shopping_list"
# environment = { # "isal"
# TZ = homelab.tz; # "default_config"
# PUID = toString config.users.users.${service}.uid; # "mqtt"
# PGID = toString config.users.groups.${service}.gid; # ];
# }; # extraPackages = python3Packages: with python3Packages; [
# }; # psycopg2
# universal-silabs-flasher
# getmac
# zha
# ha-silabs-firmware-client
# paho-mqtt
# aiomqtt
# aiounifi
# ibeacon-ble
# ];
# # imperative config
# config = null;
# lovelaceConfig = null;
# configDir = cfg.data_dir;
# # declartive poggers!
## config = {
## # Includes dependencies for a basic setup
## default_config = {};
## };
# }; # };