Flake update
This commit is contained in:
parent
6974df3752
commit
fe4b6d1ad6
8 changed files with 41 additions and 206 deletions
|
|
@ -301,13 +301,9 @@ in
|
|||
"device_automation"
|
||||
"device_sun_light_trigger"
|
||||
"device_tracker"
|
||||
"dlib_face_detect"
|
||||
"dlib_face_identify"
|
||||
"dlna_dmr"
|
||||
"dlna_dms"
|
||||
"esphome"
|
||||
"flux"
|
||||
"gdacs"
|
||||
"google"
|
||||
"google_translate"
|
||||
"group"
|
||||
|
|
|
|||
|
|
@ -229,34 +229,10 @@ in
|
|||
|
||||
assist_pipeline = { };
|
||||
# bluetooth = { };
|
||||
camera = [
|
||||
# { platform = "local_file"; file_path = "/tmp/doods_camera_camera_cancello.jpg"; name = "File DOODS2 Camera cancello"; }
|
||||
# { platform = "local_file"; file_path = "/tmp/doods_camera_camera_vialetto.jpg"; name = "File DOODS2 Camera vialetto"; }
|
||||
# { platform = "local_file"; file_path = "/tmp/doods_camera_camera_garage.jpg"; name = "File DOODS2 Camera garage"; }
|
||||
];
|
||||
camera = [ ];
|
||||
cloud = { };
|
||||
config = { };
|
||||
# device_tracker = [{
|
||||
# platform = "bluetooth_tracker";
|
||||
# request_rssi = true;
|
||||
# }];
|
||||
image_processing = [
|
||||
# {
|
||||
# platform = "doods";
|
||||
# url = "http://localhost:8080";
|
||||
# detector = "default";
|
||||
# source = [
|
||||
# { entity_id = "camera.camera_camera_cancello"; name = "DOODS2 Camera cancello"; }
|
||||
# { entity_id = "camera.camera_camera_vialetto"; name = "DOODS2 Camera vialetto"; }
|
||||
# { entity_id = "camera.camera_camera_garage"; name = "DOODS2 Camera garage"; }
|
||||
# ];
|
||||
# confidence = 60;
|
||||
# file_out = "/tmp/doods_{{ camera_entity.split('.')[1] }}.jpg";
|
||||
# scan_interval = 5;
|
||||
# labels = [ "bicycle" "car" "cat" "dog" "person" "truck" ];
|
||||
# }
|
||||
];
|
||||
# esphome = { };
|
||||
image_processing = [ ]; # esphome = { };
|
||||
frontend = { };
|
||||
google_assistant = {
|
||||
project_id = "home-assistant-milano";
|
||||
|
|
@ -297,64 +273,8 @@ in
|
|||
];
|
||||
recorder.purge_keep_days = 30;
|
||||
script = "!include scripts.yaml";
|
||||
sensor = [
|
||||
# {
|
||||
# platform = "systemmonitor";
|
||||
# resources = [
|
||||
# { type = "disk_use_percent"; }
|
||||
# { type = "disk_use"; }
|
||||
# { type = "disk_free"; }
|
||||
# { type = "memory_use_percent"; }
|
||||
# { type = "memory_use"; }
|
||||
# { type = "memory_free"; }
|
||||
# { type = "swap_use_percent"; }
|
||||
# { type = "swap_use"; }
|
||||
# { type = "swap_free"; }
|
||||
# { type = "load_1m"; }
|
||||
# { type = "load_5m"; }
|
||||
# { type = "load_15m"; }
|
||||
# { type = "network_in"; arg = "eno1"; }
|
||||
# { type = "network_out"; arg = "eno1"; }
|
||||
# { type = "throughput_network_in"; arg = "eno1"; }
|
||||
# { type = "throughput_network_out"; arg = "eno1"; }
|
||||
# { type = "packets_in"; arg = "eno1"; }
|
||||
# { type = "packets_out"; arg = "eno1"; }
|
||||
# { type = "ipv4_address"; arg = "eno1"; }
|
||||
# { type = "ipv6_address"; arg = "eno1"; }
|
||||
# { type = "network_in"; arg = "ztmjfdwjkp"; }
|
||||
# { type = "network_out"; arg = "ztmjfdwjkp"; }
|
||||
# { type = "throughput_network_in"; arg = "ztmjfdwjkp"; }
|
||||
# { type = "throughput_network_out"; arg = "ztmjfdwjkp"; }
|
||||
# { type = "packets_in"; arg = "ztmjfdwjkp"; }
|
||||
# { type = "packets_out"; arg = "ztmjfdwjkp"; }
|
||||
# { type = "ipv4_address"; arg = "ztmjfdwjkp"; }
|
||||
# { type = "ipv6_address"; arg = "ztmjfdwjkp"; }
|
||||
# { type = "processor_use"; }
|
||||
# { type = "processor_temperature"; }
|
||||
# # { type = "process"; arg = "octave-cli"; }
|
||||
# { type = "last_boot"; }
|
||||
# ];
|
||||
# }
|
||||
];
|
||||
shopping_list = { };
|
||||
sun = { };
|
||||
system_health = { };
|
||||
# telegram_bot = [{
|
||||
# # platform = "polling";
|
||||
# platform = "webhooks";
|
||||
# api_key = "!secret telegram_api_key";
|
||||
# allowed_chat_ids = [
|
||||
# "!secret filippo_t_chat_id"
|
||||
# "!secret famiglia_t_chat_id"
|
||||
# ];
|
||||
# }];
|
||||
tts = [
|
||||
{
|
||||
platform = "google_translate";
|
||||
language = "it";
|
||||
# tld = "it";
|
||||
}
|
||||
];
|
||||
tts = [{ platform = "google_translate"; language = "it"; }];
|
||||
};
|
||||
configDir = "/var/lib/hass";
|
||||
configWritable = true;
|
||||
|
|
@ -389,13 +309,9 @@ in
|
|||
"device_automation"
|
||||
"device_sun_light_trigger"
|
||||
"device_tracker"
|
||||
"dlib_face_detect"
|
||||
"dlib_face_identify"
|
||||
"dlna_dmr"
|
||||
"dlna_dms"
|
||||
"esphome"
|
||||
"flux"
|
||||
"gdacs"
|
||||
"google"
|
||||
"google_translate"
|
||||
"group"
|
||||
|
|
@ -443,83 +359,13 @@ in
|
|||
];
|
||||
};
|
||||
|
||||
# prometheus = {
|
||||
# enable = true;
|
||||
# exporters = {
|
||||
# node = {
|
||||
# enable = true;
|
||||
# enabledCollectors = [ "systemd" ];
|
||||
# };
|
||||
# process = {
|
||||
# enable = true;
|
||||
# settings.process_names = [
|
||||
# # Remove nix store path from process name
|
||||
# {
|
||||
# name = "{{.Matches.Wrapped}} {{ .Matches.Args }}";
|
||||
# cmdline = [ "^/nix/store[^ ]*/(?P<Wrapped>[^ /]*) (?P<Args>.*)" ];
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# systemd.enable = true;
|
||||
# };
|
||||
# globalConfig = {
|
||||
# scrape_interval = "10s";
|
||||
# };
|
||||
# scrapeConfigs = [
|
||||
# {
|
||||
# job_name = "node";
|
||||
# static_configs = [
|
||||
# { targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; }
|
||||
# ];
|
||||
# }
|
||||
# {
|
||||
# job_name = "process";
|
||||
# static_configs = [
|
||||
# { targets = [ "localhost:${toString config.services.prometheus.exporters.process.port}" ]; }
|
||||
# ];
|
||||
# }
|
||||
# {
|
||||
# job_name = "systemd";
|
||||
# static_configs = [
|
||||
# { targets = [ "localhost:${toString config.services.prometheus.exporters.systemd.port}" ]; }
|
||||
# ];
|
||||
# }
|
||||
# ];
|
||||
# retentionTime = "15d";
|
||||
# };
|
||||
|
||||
snapper.configs =
|
||||
let
|
||||
common = {
|
||||
TIMELINE_CREATE = true;
|
||||
TIMELINE_CLEANUP = true;
|
||||
};
|
||||
in
|
||||
{
|
||||
bertof = lib.recursiveUpdate common {
|
||||
SUBVOLUME = "/mnt/raid/bertof/";
|
||||
ALLOW_USERS = [ "bertof" ];
|
||||
};
|
||||
tiziano = lib.recursiveUpdate common {
|
||||
SUBVOLUME = "/mnt/raid/tiziano/";
|
||||
ALLOW_USERS = [ "tiziano" ];
|
||||
};
|
||||
condiviso = lib.recursiveUpdate common {
|
||||
SUBVOLUME = "/mnt/raid/condiviso";
|
||||
ALLOW_USERS = [
|
||||
"bertof"
|
||||
"tiziano"
|
||||
];
|
||||
};
|
||||
immich = lib.recursiveUpdate common {
|
||||
SUBVOLUME = "/mnt/raid/immich";
|
||||
ALLOW_USERS = [ "bertof" ];
|
||||
};
|
||||
garage = lib.recursiveUpdate common {
|
||||
SUBVOLUME = "/mnt/raid/garage";
|
||||
ALLOW_USERS = [ "bertof" ];
|
||||
};
|
||||
};
|
||||
snapper.configs = let common = { TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; }; in {
|
||||
bertof = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/bertof/"; ALLOW_USERS = [ "bertof" ]; };
|
||||
tiziano = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/tiziano/"; ALLOW_USERS = [ "tiziano" ]; };
|
||||
condiviso = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/condiviso"; ALLOW_USERS = [ "bertof" "tiziano" ]; };
|
||||
immich = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/immich"; ALLOW_USERS = [ "bertof" ]; };
|
||||
garage = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/garage"; ALLOW_USERS = [ "bertof" ]; };
|
||||
};
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Rome";
|
||||
|
|
|
|||
|
|
@ -435,13 +435,9 @@ in
|
|||
"device_automation"
|
||||
"device_sun_light_trigger"
|
||||
"device_tracker"
|
||||
"dlib_face_detect"
|
||||
"dlib_face_identify"
|
||||
"dlna_dmr"
|
||||
"dlna_dms"
|
||||
"esphome"
|
||||
"flux"
|
||||
"gdacs"
|
||||
"google"
|
||||
"google_translate"
|
||||
"group"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ let
|
|||
in
|
||||
{
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
# kernelPackages = pkgs.linuxPackages_latest;
|
||||
kernelParams = [ "acpi_osi=Linux-Dell-Video" ];
|
||||
initrd.checkJournalingFS = true; # Use same ACPI identifier as Dell Ubuntu
|
||||
loader = {
|
||||
|
|
@ -400,13 +400,9 @@ in
|
|||
"device_automation"
|
||||
"device_sun_light_trigger"
|
||||
"device_tracker"
|
||||
# "dlib_face_detect"
|
||||
# "dlib_face_identify"
|
||||
"dlna_dmr"
|
||||
"dlna_dms"
|
||||
"esphome"
|
||||
"flux"
|
||||
"gdacs"
|
||||
"google"
|
||||
"google_translate"
|
||||
"group"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ config, pkgs, lib, ... }: {
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
# kernelPackages = pkgs.linuxPackages_latest;
|
||||
# kernelPackages = pkgs.linuxPackages_6_7_hardened;
|
||||
# kernelPackages = pkgs.linuxPackages_6_8;
|
||||
kernelParams = [ ];
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
"armv7l-linux"
|
||||
"aarch64-linux"
|
||||
];
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
# kernelPackages = pkgs.linuxPackages_latest;
|
||||
# kernelPackages = pkgs.linuxPackages_6_1;
|
||||
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
|
||||
loader = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue