Don't force you to build sdImage

This commit is contained in:
Artemis Tosini 2023-12-09 18:57:41 +00:00
parent 145cf2460c
commit ff53ca768d
Signed by: artemist
GPG key ID: EE5227935FE3FF18

View file

@ -14,11 +14,11 @@
makeImage = conf: makeImage = conf:
(conf.extendModules { (conf.extendModules {
modules = [{ config.nixpkgs.buildPlatform.system = system; }]; modules = [{ config.nixpkgs.buildPlatform.system = system; }];
}).config.system.build.sdImage; }).config.system.build;
in { in {
formatter = pkgs.nixfmt; formatter = pkgs.nixfmt;
packages = lib.mapAttrs' packages = lib.mapAttrs'
(name: value: lib.nameValuePair "${name}-sdimage" (makeImage value)) (name: value: lib.nameValuePair "${name}" (makeImage value))
self.nixosConfigurations; self.nixosConfigurations;
})) // { })) // {
nixosModules.minify = { config, ... }: { nixosModules.minify = { config, ... }: {