Compare commits

...

3 commits

Author SHA1 Message Date
5b6e91249f
yuki: add basic hass config
All checks were successful
flake check / check (push) Successful in 4m9s
fmt check / check (push) Successful in 53s
2024-01-16 22:50:24 -05:00
2a5f435576
yuki: init navidrome 2024-01-16 22:49:47 -05:00
f0d590a192
stash: bump version 2024-01-16 22:49:29 -05:00
6 changed files with 170 additions and 1 deletions

View file

@ -1,5 +1,6 @@
{...}: { {...}: {
imports = [ imports = [
./hass
./restic.nix ./restic.nix
./traefik.nix ./traefik.nix
./stash.nix ./stash.nix
@ -7,5 +8,6 @@
./wallos.nix ./wallos.nix
./homepage.nix ./homepage.nix
./searxng.nix ./searxng.nix
./navidrome.nix
]; ];
} }

View file

@ -0,0 +1,18 @@
_: {
services.home-assistant.config = {
lovelace.mode = "yaml";
http = {
server_host = "192.168.1.98";
server_port = 8124;
};
homeassistant = {
name = "Home";
time_zone = "America/New_York";
unit_system = "imperial";
temperature_unit = "F";
currency = "USD";
country = "US";
};
default_config = {};
};
}

View file

@ -0,0 +1,28 @@
_: {
imports = [
./lovelace.nix
./config.nix
];
nixpkgs.config.permittedInsecurePackages = ["openssl-1.1.1w"];
services.home-assistant = {
enable = true;
openFirewall = true;
extraComponents = [
"default_config"
"met"
"openweathermap"
"esphome"
"google_translate"
"radio_browser"
"sonarr"
"radarr"
"glances"
"epson"
"eufy"
"hue"
"nanoleaf"
];
};
}

View file

@ -0,0 +1,110 @@
_: {
services.home-assistant.lovelaceConfig = {
title = "Home";
views = [
{
title = "Home";
icon = "mdi:home";
cards = [
{
type = "markdown";
title = "Lovelace";
content = "Welcome home!";
}
{
type = "weather-forecast";
entity = "weather.openweathermap";
forecast_type = "hourly";
}
];
}
{
title = "Living Room";
cards = [
{
type = "light";
entity = "light.living_room";
tap_action = {action = "toggle";};
hold_action = {action = "Default action";};
style = {
top = "72.8%";
left = "75.3%";
};
}
{
type = "light";
entity = "light.hall_light";
tap_action = {action = "toggle";};
hold_action = {action = "Default action";};
style = {
top = "72.8%";
left = "75.3%";
};
}
];
}
{
title = "Master Bedroom";
cards = [
{
type = "light";
entity = "light.master_bedroom_lamp";
tap_action = {action = "toggle";};
hold_action = {action = "Default action";};
style = {
top = "72.8%";
left = "75.3%";
};
}
];
}
{
title = "Bedroom 1";
cards = [
{
type = "light";
entity = "light.bedroom_1";
show_state = true;
show_icon = true;
tap_action = {action = "toggle";};
hold_action = {action = "Default action";};
style = {
top = "72.8%";
left = "75.3%";
};
}
{
type = "light";
entity = "light.light_panels_58_6c_84";
show_state = true;
show_icon = true;
tap_action = {action = "toggle";};
hold_action = {action = "Default action";};
style = {
top = "72.8%";
left = "75.3%";
};
}
{
type = "entities";
entities = [
"light.hue_color_lamp_1"
"light.hue_color_lamp_2"
"light.hue_lightstrip_plus_1"
"light.light_panels_58_6c_84"
];
style = {
top = "72.8%";
left = "75.3%";
};
}
];
}
{
title = "Bedroom 2";
cards = [
];
}
];
};
}

View file

@ -0,0 +1,11 @@
_: {
services.navidrome = {
enable = true;
openFirewall = true;
settings = {
Address = "100.108.113.89";
Port = 4533;
MusicFolder = "/media/music";
};
};
}

View file

@ -1,6 +1,6 @@
_: { _: {
virtualisation.oci-containers.containers.stash = { virtualisation.oci-containers.containers.stash = {
image = "stashapp/stash:v0.24.2"; image = "stashapp/stash:v0.24.3";
environment = { environment = {
STASH_STASH = "/data/"; STASH_STASH = "/data/";
STASH_GENERATED = "/generated/"; STASH_GENERATED = "/generated/";