about summary refs log tree commit diff
path: root/nix/flake
diff options
context:
space:
mode:
Diffstat (limited to 'nix/flake')
-rw-r--r--nix/flake/hosts.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/nix/flake/hosts.nix b/nix/flake/hosts.nix
index 36821b6..c02fe6c 100644
--- a/nix/flake/hosts.nix
+++ b/nix/flake/hosts.nix
@@ -30,6 +30,14 @@ let
       ];
       specialArgs = { inherit inputs self; };
     };
+
+  mkNixosConfig = system: path: nixpkgs.lib.nixosSystem {
+    inherit system;
+    modules = [
+      path
+    ];
+    specialArgs = { inherit inputs self; };
+  };
 in
 {
   flake = mkMerge [
@@ -38,6 +46,10 @@ in
         mba-fcuny = mkDarwinConfig "aarch64-darwin" "${self}/nix/hosts/mba";
         HQ-C02FK3Q7MD6T = mkDarwinConfig "x86_64-darwin" "${self}/nix/hosts/work";
       };
+
+      nixosConfigurations = {
+        vm = mkNixosConfig "aarch64-linux" "${self}/nix/hosts/vm";
+      };
     }
   ];
 }