From 30558b5b98c362e4daabb9223286a2595191be4e Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 3 Aug 2024 14:04:03 -0700 Subject: add a linux VM as a new host The linux VM runs with UTM, and it has a very basic configuration for now. --- nix/flake/hosts.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'nix/flake') 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"; + }; } ]; } -- cgit 1.4.1