This commit is contained in:
iFargle 2023-09-19 10:19:31 +09:00
parent 9ea3765c1a
commit 3f772551d2
2 changed files with 6 additions and 5 deletions

View file

@ -42,7 +42,7 @@
"albert@nixos-rpi4-03" = libx.mkHome { hostname = "nixos-rpi4-03"; platform = "aarch64-linux"; }; "albert@nixos-rpi4-03" = libx.mkHome { hostname = "nixos-rpi4-03"; platform = "aarch64-linux"; };
}; };
imageConfigurations = { imageConfigurations = {
nixos-rpi4-img = nixos-generators.nixosGenerate { system = "aarch64-linux"; format = "sd-aarch64"; }; nixos-rpi4-img = libx.mkImage { hostname = "nixos-rpi4-img"; platform = "aarch64-linux"; format = "sd-aarch64"; };
}; };
}; };
} }

View file

@ -41,9 +41,10 @@
platform ? "x86_64-linux", platform ? "x86_64-linux",
installer , installer ,
gpu ? null, gpu ? null,
theme ? "default" theme ? "default",
}: inputs.nixpkgs.lib.nixosSystem { format
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu platform theme; }; }: inputs.nixos-generators.nixosGenerate {
specialArgs = { inherit inputs outputs desktop hostname username stateVersion gpu platform theme format; };
system = "$platform"; system = "$platform";
modules = [ modules = [
../nixos ../nixos
@ -51,7 +52,7 @@
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
inputs.lanzaboote.nixosModules.lanzaboote inputs.lanzaboote.nixosModules.lanzaboote
inputs.home-manager.nixosModules.home-manager { inputs.home-manager.nixosModules.home-manager {
extraSpecialArgs = { inherit inputs outputs desktop hostname platform username hmStateVersion theme; }; extraSpecialArgs = { inherit inputs outputs desktop hostname platform username hmStateVersion theme format; };
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;