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