rewrite pihole

This commit is contained in:
Andreas Zweili 2022-02-28 22:15:14 +01:00
parent 3be424271b
commit 2ada8844ed
2 changed files with 18 additions and 11 deletions

View File

@ -147,18 +147,9 @@
./home-manager/headless.nix
[ ];
pihole = mkComputer
(mkVM
{ hostname = "pihole"; ip = "10.7.89.2"; inherit custom inputs; })
./systems/pihole
./home-manager/headless.nix
[
./modules/docker
./modules/pihole
(import ./modules/restic-server-client {
inherit custom inputs; time = "05:00";
})
./modules/unbound
];
[ ];
restic-server = mkComputer
(mkVM
{ hostname = "restic-server"; ip = "10.7.89.30"; inherit custom inputs; })

View File

@ -0,0 +1,16 @@
{ config, custom, inputs, pkgs, ... }:
{
imports = [
(import "${inputs.self}/systems/proxmox-vm" {
hostname = "pihole";
ip = "10.7.89.2";
inherit inputs;
})
(import "${inputs.self}/modules/restic-server-client" {
time = "05:00"; inherit config custom inputs pkgs;
})
"${inputs.self}/modules/docker"
"${inputs.self}/modules/pihole"
"${inputs.self}/modules/unbound"
];
}