mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
chore: merge remote-tracking branch 'refs/remotes/origin/master'
This commit is contained in:
commit
92dc5e914b
5 changed files with 42 additions and 13 deletions
|
|
@ -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) ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
15
modules/services/home-assistant.nix
Normal file
15
modules/services/home-assistant.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
@ -12,9 +20,10 @@ in {
|
||||||
pkgs.kitty.terminfo
|
pkgs.kitty.terminfo
|
||||||
powertop
|
powertop
|
||||||
];
|
];
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue