mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-10 07:30:18 +02:00
huge refactoring
This commit is contained in:
parent
fffcee128e
commit
7a2fba99cd
30 changed files with 246 additions and 201 deletions
16
features/containers/4get.nix
Normal file
16
features/containers/4get.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{config, ...}:
|
||||
{
|
||||
virtualisation.oci-containers = {
|
||||
backend = "docker";
|
||||
containers = {
|
||||
fourget = {
|
||||
image = "luuul/4get:latest";
|
||||
environment = {
|
||||
"FOURGET_PROTO" = "http";
|
||||
"FOURGET_SERVER_NAME" = "192.168.1.177:6942";
|
||||
};
|
||||
ports = ["6942:80"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -4,7 +4,8 @@
|
|||
imports = [
|
||||
./crafty-controller.nix
|
||||
./flaresolverr.nix
|
||||
./freshrss.nix
|
||||
# ./freshrss.nix
|
||||
./sonarr.nix
|
||||
./pihole-exporter.nix
|
||||
];
|
||||
}
|
||||
|
|
21
features/containers/pihole-exporter.nix
Normal file
21
features/containers/pihole-exporter.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
|
||||
sops.secrets.piholeHostname = {};
|
||||
sops.secrets.piholePassword = {};
|
||||
|
||||
virtualisation.oci-containers = {
|
||||
backend = "docker";
|
||||
containers = {
|
||||
pihole-exporter = {
|
||||
image = "ekofr/pihole-exporter:latest";
|
||||
ports = [ "9617:9617" ];
|
||||
environment = {
|
||||
"PIHOLE_HOSTNAME" = config.sops.secrets.piholeHostname;
|
||||
"PIHOLE_PASSWORD" = config.sops.secrets.piholePassword;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue