From 9892aba986d48add9dcb9f5aee8adf42c6b22c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 12 Oct 2024 10:50:42 +0200 Subject: [PATCH] don't allow anonymous nixos modules we always want _file --- flake.nix | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/flake.nix b/flake.nix index 4be9c83..8392544 100644 --- a/flake.nix +++ b/flake.nix @@ -16,31 +16,33 @@ packages = forAllSystems (system: let netboot = nixpkgs: (import (nixpkgs + "/nixos/release.nix") { }).netboot.${system}; - kexec-installer = nixpkgs: modules: (nixpkgs.legacyPackages.${system}.nixos (modules ++ [ self.nixosModules.kexec-installer ])).config.system.build.kexecTarball; + kexec-installer = nixpkgs: module: (nixpkgs.legacyPackages.${system}.nixos [ module self.nixosModules.kexec-installer ]).config.system.build.kexecTarball; netboot-installer = nixpkgs: (nixpkgs.legacyPackages.${system}.nixos [ self.nixosModules.netboot-installer ]).config.system.build.netboot; image-installer = nixpkgs: (nixpkgs.legacyPackages.${system}.nixos [ self.nixosModules.image-installer ]).config.system.build.isoImage; in { netboot-nixos-unstable = netboot nixos-unstable; netboot-nixos-stable = netboot nixos-stable; - kexec-installer-nixos-unstable = kexec-installer nixos-unstable [ ]; - kexec-installer-nixos-stable = kexec-installer nixos-stable [ ]; + kexec-installer-nixos-unstable = kexec-installer nixos-unstable {}; + kexec-installer-nixos-stable = kexec-installer nixos-stable {}; image-installer-nixos-unstable = image-installer nixos-unstable; image-installer-nixos-stable = image-installer nixos-stable; - kexec-installer-nixos-unstable-noninteractive = kexec-installer nixos-unstable [ - { - system.kexec-installer.name = "nixos-kexec-installer-noninteractive"; - } - self.nixosModules.noninteractive - ]; - kexec-installer-nixos-stable-noninteractive = kexec-installer nixos-stable [ - { - system.kexec-installer.name = "nixos-kexec-installer-noninteractive"; - } - self.nixosModules.noninteractive - ]; + kexec-installer-nixos-unstable-noninteractive = kexec-installer nixos-unstable { + _file = __curPos.file; + system.kexec-installer.name = "nixos-kexec-installer-noninteractive"; + imports = [ + self.nixosModules.noninteractive + ]; + }; + kexec-installer-nixos-stable-noninteractive = kexec-installer nixos-stable { + _file = __curPos.file; + system.kexec-installer.name = "nixos-kexec-installer-noninteractive"; + imports = [ + self.nixosModules.noninteractive + ]; + }; netboot-installer-nixos-unstable = netboot-installer nixos-unstable; netboot-installer-nixos-stable = netboot-installer nixos-stable;