NixOS system configurations + dotfiles via home-manager
1{ self, lib, ... }:
2{
3 perSystem = {
4 apps = lib.mapAttrs' (name: host: {
5 name = "${name}-vm";
6 value = {
7 type = "app";
8 program = lib.getExe (
9 if host.config.disko.devices.disk != { } then
10 host.config.system.build.vmWithDisko
11 else
12 host.config.system.build.vm
13 );
14 };
15 }) self.nixosConfigurations;
16 };
17}