diff --git a/flake.nix b/flake.nix index ad258213..774cfbfc 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,8 @@ sops-nix.url = "github:Mic92/sops-nix"; doom-emacs.url = "github:nix-community/nix-doom-emacs"; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; + nixos-generators.url = "github:/nix-community/nixos-generators"; + nixos-generators.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { self, nixpkgs, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, doom-emacs, ... } @inputs: let @@ -40,7 +42,7 @@ "albert@nixos-rpi4-03" = libx.mkHome { hostname = "nixos-rpi4-03"; platform = "aarch64-linux"; }; }; imageConfigurations = { - nixos-rpi4-img = libx.mkImage { hostname = "nixos-rpi4-img"; platform = "aarch64-linux"; installer = nixpkgs + "/nixos/modules/installer/sd-card/sd-image-aarch64.nix"; }; + nixos-rpi4-img = nixos-generators.nixosGenerate { system = "aarch64-linux"; format = "sd-aarch64"; }; }; }; } \ No newline at end of file