Migrate redis to LXC

This commit is contained in:
Théo Barnouin 2024-10-15 15:44:21 +02:00
parent 6ddb56f722
commit fcd44586c1

View file

@ -39,7 +39,6 @@
microvm = { microvm = {
autostart = [ autostart = [
"nginx" "nginx"
"redis"
"grafana" "grafana"
"authentik" "authentik"
]; ];
@ -48,10 +47,6 @@
flake = self; flake = self;
updateFlake = "git+file:///etc/nixos"; updateFlake = "git+file:///etc/nixos";
}; };
redis = {
flake = self;
updateFlake = "git+file:///etc/nixos";
};
grafana = { grafana = {
flake = self; flake = self;
updateFlake = "git+file:///etc/nixos"; updateFlake = "git+file:///etc/nixos";
@ -146,19 +141,12 @@
redis = nixpkgs.lib.nixosSystem { redis = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
microvm.nixosModules.microvm
"${inputs.self}/systems"
"${inputs.self}/services" "${inputs.self}/services"
{ {
networking.hostName = "redis";
services.vm_redis = { services.vm_redis = {
enable = true; enable = true;
}; };
services.vm = {
enable = true;
hostname = "redis";
vm_ip = "192.168.1.16";
macAddr = "02:00:00:00:00:16";
};
} }
]; ];
}; };