started draft for installer

This commit is contained in:
Leyla Becker 2024-11-25 22:37:08 -06:00
parent c487b26112
commit 9d88822266
5 changed files with 94 additions and 15 deletions

View file

@ -55,6 +55,16 @@ in {
(lib.mkUnless condition no)
];
mkNixosInstaller = host: userKeys:
nixpkgs.lib.nixosSystem {
modules = [
{
# TODO: authorized keys for all users
}
../configurations/nixos/${host}
];
};
mkNixosSystem = host:
nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs outputs util;};