generate installer iso

This commit is contained in:
Ivan Kirilov Dimitrov 2024-08-03 15:14:13 +02:00
parent 6631b11382
commit 6ea6fbaa9c
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294
3 changed files with 5 additions and 1 deletions

View File

@ -30,3 +30,6 @@ nonya:
ai:
doas nixos-rebuild switch --flake ./#ai
installer-iso:
nix shell nixpkgs#nixos-generators --command nixos-generate -f install-iso --flake ./#nixos

View File

@ -20,5 +20,6 @@ in
music = novaConfig (with mods; [ music ivand ]);
nonya = novaConfig (with mods; [ anon cryptocurrency ivand ]);
ai = novaConfig (with mods; [ ai ivand ]);
installer-iso = configWithModules { hardware = { }; modules = (with mods; [ grub base ]); };
};
}

View File

@ -7,7 +7,7 @@ top@{ inputs, moduleWithSystem, ... }: {
let
theme = pkgs.sleek-grub-theme.override { withBanner = "Hello Ivan"; withStyle = "bigSur"; };
in
{ enable = true; useOSProber = true; efiSupport = true; device = "nodev"; theme = theme; splashImage = "${theme}/background.png"; };
{ enable = pkgs.lib.mkDefault true; useOSProber = true; efiSupport = true; device = "nodev"; theme = theme; splashImage = "${theme}/background.png"; };
efi = { canTouchEfiVariables = true; };
};
};