forked from kalipso/infrastructure
[fanny] setup as microvm host
This commit is contained in:
@@ -93,6 +93,8 @@ let
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
] ++ defaultModules ++ modules;
|
] ++ defaultModules ++ modules;
|
||||||
|
|
||||||
|
inputsMod = inputs // { malobeo = self; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
louise = nixosSystem {
|
louise = nixosSystem {
|
||||||
@@ -114,7 +116,7 @@ in
|
|||||||
|
|
||||||
fanny = nixosSystem {
|
fanny = nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs.inputs = inputs;
|
specialArgs.inputs = inputsMod;
|
||||||
modules = defaultModules ++ [
|
modules = defaultModules ++ [
|
||||||
self.nixosModules.malobeo.vpn
|
self.nixosModules.malobeo.vpn
|
||||||
./fanny/configuration.nix
|
./fanny/configuration.nix
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ in
|
|||||||
../modules/autoupdate.nix
|
../modules/autoupdate.nix
|
||||||
inputs.self.nixosModules.malobeo.initssh
|
inputs.self.nixosModules.malobeo.initssh
|
||||||
inputs.self.nixosModules.malobeo.disko
|
inputs.self.nixosModules.malobeo.disko
|
||||||
|
inputs.self.nixosModules.malobeo.microvm
|
||||||
];
|
];
|
||||||
|
|
||||||
malobeo.autoUpdate = {
|
malobeo.autoUpdate = {
|
||||||
@@ -51,6 +52,10 @@ in
|
|||||||
privateKeyFile = config.sops.secrets.wg_private.path;
|
privateKeyFile = config.sops.secrets.wg_private.path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.malobeo.microvm.enableHostBridge = true;
|
||||||
|
services.malobeo.microvm.deployHosts = [ "infradocs" ];
|
||||||
|
|
||||||
|
|
||||||
services.nginx.virtualHosts."docs.malobeo.org" = {
|
services.nginx.virtualHosts."docs.malobeo.org" = {
|
||||||
locations."/".proxyPass = "http://10.0.0.11:9000";
|
locations."/".proxyPass = "http://10.0.0.11:9000";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user