flake: replace nixos-generators
2 files changed, 5 insertions(+), 53 deletions(-)
changed files
M flake.lock → flake.lock
@@ -615,42 +615,6 @@ "repo": "nix-darwin", "type": "github" } }, - "nixlib": { - "locked": { - "lastModified": 1736643958, - "narHash": "sha256-tmpqTSWVRJVhpvfSN9KXBvKEXplrwKnSZNAoNPf/S/s=", - "owner": "nix-community", - "repo": "nixpkgs.lib", - "rev": "1418bc28a52126761c02dd3d89b2d8ca0f521181", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "nixpkgs.lib", - "type": "github" - } - }, - "nixos-generators": { - "inputs": { - "nixlib": "nixlib", - "nixpkgs": [ - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1769813415, - "narHash": "sha256-nnVmNNKBi1YiBNPhKclNYDORoHkuKipoz7EtVnXO50A=", - "owner": "nix-community", - "repo": "nixos-generators", - "rev": "8946737ff703382fda7623b9fab071d037e897d5", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "nixos-generators", - "type": "github" - } - }, "nixos-hardware": { "locked": { "lastModified": 1772972630,@@ -929,7 +893,6 @@ "home-manager": "home-manager", "minimal-emacs": "minimal-emacs", "mycal": "mycal", "nanopi": "nanopi", - "nixos-generators": "nixos-generators", "nixos-hardware": "nixos-hardware", "nixpkgs": [ "srvos",
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 ]; - }; - }); }; }