mirror of https://git.jolheiser.com/ugit.git
add app script to flake for VM
parent
9f3ca2ae1e
commit
68992f0807
16
flake.nix
16
flake.nix
|
@ -68,5 +68,21 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
apps = forAllSystems (
|
||||||
|
system:
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
vm = {
|
||||||
|
type = "app";
|
||||||
|
program = "${pkgs.writeShellScript "vm" ''
|
||||||
|
nixos-rebuild build-vm --flake .#ugitVM
|
||||||
|
./result/bin/run-nixos-vm
|
||||||
|
rm nixos.qcow2
|
||||||
|
''}";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue