From 6861e991e105e87e534786e75c187765859693e6 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Tue, 20 Feb 2024 20:00:46 +0300 Subject: [PATCH] Live : Update installation. --- .config/bash/module/Nix.sh | 2 +- .config/linux/system/flake.nix | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.config/bash/module/Nix.sh b/.config/bash/module/Nix.sh index d5fc517..c145a09 100644 --- a/.config/bash/module/Nix.sh +++ b/.config/bash/module/Nix.sh @@ -69,7 +69,7 @@ alias tmpshell="nix_tmpshell" # Build live image. function nix_live() { - nix build "${_nix_system_config}#installer.iso" + nix build "${_nix_system_config}#nixosConfigurations.live.config.system.build.isoImage" } # Autocomplete with available hosts. diff --git a/.config/linux/system/flake.nix b/.config/linux/system/flake.nix index d4812d4..f489fe7 100644 --- a/.config/linux/system/flake.nix +++ b/.config/linux/system/flake.nix @@ -27,12 +27,6 @@ ./module/common/Users.nix ]; - # Live system. - installer = installer-gen.generate { - inputFlake = self; - targetConfig = nixosConfigurations.live; - }; - # Function to create a host. mkHost = { system, hostname, modules }: nixpkgs.lib.nixosSystem { inherit system; @@ -117,6 +111,7 @@ hostname = "live"; system = "x86_64-linux"; modules = [ + "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" ./module/Gnome.nix ]; };