flake: replace nixos-generators
1 file changed, 5 insertions(+), 16 deletions(-)
changed files
M flake.nix → flake.nix
@@ -21,10 +21,6 @@ home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; - nixos-generators = { - url = "github:nix-community/nixos-generators"; - inputs.nixpkgs.follows = "nixpkgs"; - }; nur = { url = "github:nix-community/nur"; inputs.nixpkgs.follows = "nixpkgs";@@ -66,10 +62,6 @@ outputs = inputs: with inputs; let - isoSystems = [ - "x86_64-linux" - ]; - # System types to support. supportedSystems = [ "x86_64-linux"@@ -109,6 +101,11 @@ ++ modules; }; in { + # build with `nixos-rebuild build-image --image-variant iso-installer` + nixosConfigurations.minimal-iso = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ ./system/hosts/installer.nix ]; + }; nixosConfigurations.prefect = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = (@@ -247,13 +244,5 @@ packages = [ agenix.packages.${system}.default ]; }; } ); - - packages = (nixpkgs.lib.genAttrs isoSystems) (system: { - minimal-iso = nixos-generators.nixosGenerate { - inherit system; - format = "iso"; - modules = [ ./system/hosts/installer.nix ]; - }; - }); }; }