From 6ea6fbaa9ca656ec98450436622ccc2b27ca93a7 Mon Sep 17 00:00:00 2001 From: Ivan Kirilov Dimitrov Date: Sat, 3 Aug 2024 15:14:13 +0200 Subject: [PATCH] generate installer iso --- Justfile | 3 +++ nixos/configs/default.nix | 1 + nixos/modules/default.nix | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 5eed69f..cef749d 100644 --- a/Justfile +++ b/Justfile @@ -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 diff --git a/nixos/configs/default.nix b/nixos/configs/default.nix index 5ed4819..8f06168 100644 --- a/nixos/configs/default.nix +++ b/nixos/configs/default.nix @@ -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 ]); }; }; } diff --git a/nixos/modules/default.nix b/nixos/modules/default.nix index edc6b7d..0d522cb 100644 --- a/nixos/modules/default.nix +++ b/nixos/modules/default.nix @@ -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; }; }; };