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 ]; };