chore: merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
Ahwx 2025-04-22 20:16:05 +02:00
commit 92dc5e914b
5 changed files with 42 additions and 13 deletions

View file

@ -1,7 +1,9 @@
{ ... }: { { ... }:
{
imports = imports =
[(import ./docker.nix)] [ (import ./docker.nix) ]
++ [(import ./immich.nix)] ++ [ (import ./immich.nix) ]
++ [(import ./nextcloud.nix)] ++ [ (import ./nextcloud.nix) ]
++ [(import ./scrutiny.nix)]; ++ [ (import ./home-assistant.nix) ]
++ [ (import ./scrutiny.nix) ];
} }

View file

@ -0,0 +1,15 @@
{
networking.firewall.allowedTCPPorts = [ 8123 ];
virtualisation.oci-containers = {
backend = "docker";
containers.homeassistant = {
volumes = [ "home-assistant:/config" ];
environment.TZ = "Europe/Amsterdam";
image = "ghcr.io/home-assistant/home-assistant:stable"; # Warning: if the tag does not change, the image will not be updated
extraOptions = [
"--network=host"
# "--device=/dev/ttyACM0:/dev/ttyACM0" # Example, change this to match your own hardware
];
};
};
}

View file

@ -1,6 +1,7 @@
{ ... }: { { ... }:
{
services.nextcloud = { services.nextcloud = {
enable = true; enable = false;
config.dbtype = "sqlite"; config.dbtype = "sqlite";
configureRedis = true; configureRedis = true;
home = "/home/liv/nextcloud"; home = "/home/liv/nextcloud";

View file

@ -1,10 +1,12 @@
{ config, ... }: { { config, ... }:
{
services.scrutiny = { services.scrutiny = {
enable = true; enable = true;
collector.enable = true; collector.enable = true;
settings.web.listen.port = 8181; settings.web.listen.port = 8181;
settings.notify.urls = [ settings.notify.urls = [
"ntfy://${config.liv.variables.ntfyURL}/${config.networking.hostName}" # "ntfy://${config.liv.variables.ntfyURL}/${config.networking.hostName}"
"ntfy://notify.liv.town/${config.networking.hostName}"
]; ];
}; };

View file

@ -1,8 +1,16 @@
{ lib, pkgs, config, username, home-manager, ... }: {
lib,
pkgs,
config,
username,
home-manager,
...
}:
with lib; with lib;
let let
cfg = config.liv.server; cfg = config.liv.server;
in { in
{
options.liv.server = { options.liv.server = {
enable = mkEnableOption "Enable server"; enable = mkEnableOption "Enable server";
}; };
@ -15,6 +23,7 @@ in {
services = { services = {
thermald.enable = true; thermald.enable = true;
vnstat.enable = true;
# cpupower-gui.enable = true; # cpupower-gui.enable = true;
# power-profiles-daemon.enable = true; # power-profiles-daemon.enable = true;