diff --git a/flake.nix b/flake.nix index 6844cfc2..8f9bd832 100644 --- a/flake.nix +++ b/flake.nix @@ -892,7 +892,7 @@ leon = nixosSystem' { modules = [ - self.nixosModules.microvm + self.nixosModules.cluster-options ./hosts/leon ]; }; diff --git a/hosts/leon/default.nix b/hosts/leon/default.nix index ecef2f04..0678ba1c 100644 --- a/hosts/leon/default.nix +++ b/hosts/leon/default.nix @@ -30,23 +30,12 @@ { config, lib, pkgs, ... }: { - microvm = { + deployment = { + persistedShares = [ "/etc" "/home" "/var" ]; mem = 2048; - writableStoreOverlay = "/nix/.rw-store"; - volumes = [ { - image = "nix-store-overlay.img"; - mountPoint = config.microvm.writableStoreOverlay; - size = 5048; - } ]; }; nix.settings.auto-optimise-store = lib.mkForce false; - c3d2.deployment = { - server = "server10"; - mounts = [ "etc" "home" "var"]; - autoNetSetup = true; - }; - networking = { hostName = "leon"; firewall.enable = true;