rewrite proxy

This commit is contained in:
Andreas Zweili 2022-02-28 21:19:55 +01:00
parent 27a5226a0a
commit 3d1703ee79
2 changed files with 17 additions and 6 deletions

View File

@ -107,12 +107,9 @@
./modules/espanso
];
proxy = mkComputer
(mkVM
{ hostname = "proxy"; ip = "10.7.89.100"; inherit custom inputs; })
./home-manager/headless.nix
[
./modules/haproxy
];
./systems/proxy
./home-manager/headless.nix;
nixos-management = mkComputer
./systems/nixos-management
./home-manager/headless.nix

14
systems/proxy/default.nix Normal file
View File

@ -0,0 +1,14 @@
{ config, custom, inputs, pkgs, ... }:
{
imports = [
(import "${inputs.self}/systems/proxmox-vm" {
hostname = "proxy";
ip = "10.7.89.100";
inherit inputs;
})
(import "${inputs.self}/modules/restic-server-client" {
time = "21:30"; inherit config custom inputs pkgs;
})
"${inputs.self}/modules/haproxy"
];
}