diff options
author | Franck Cuny <franck@fcuny.net> | 2024-08-03 14:04:03 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-08-03 14:04:03 -0700 |
commit | 30558b5b98c362e4daabb9223286a2595191be4e (patch) | |
tree | 27ac618628521e2abd4c385b490e1b41ab0ab0a2 /nix/flake | |
parent | add lint as a target and reformat (diff) | |
download | world-30558b5b98c362e4daabb9223286a2595191be4e.tar.gz |
add a linux VM as a new host
The linux VM runs with UTM, and it has a very basic configuration for now.
Diffstat (limited to 'nix/flake')
-rw-r--r-- | nix/flake/hosts.nix | 12 |
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"; + }; } ]; } |