This commit is contained in:
Adam Stephens 2024-05-02 15:17:40 -04:00
parent 0e16eff1db
commit 43d813662a
No known key found for this signature in database
2 changed files with 43 additions and 21 deletions

View file

@ -22,7 +22,8 @@
flake.nixosModules.default = import ./module.nix; flake.nixosModules.default = import ./module.nix;
flake.nixosConfigurations.example = inputs.nixpkgs.lib.nixosSystem { flake.nixosConfigurations = {
example = inputs.nixpkgs.lib.nixosSystem {
system = "aarch64-linux"; system = "aarch64-linux";
modules = [ modules = [
self.nixosModules.default self.nixosModules.default
@ -43,5 +44,18 @@
} }
]; ];
}; };
iso = inputs.nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
self.nixosModules.default
"${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
{
nixos-x13s.enable = true;
nixpkgs.config.allowUnfree = true;
}
];
};
};
}; };
} }

View file

@ -15,10 +15,7 @@ let
pkgs.linuxPackages_latest pkgs.linuxPackages_latest
else else
pkgs.linuxPackagesFor ( pkgs.linuxPackagesFor (
if cfg.kernel == "jhovold" then if cfg.kernel == "jhovold" then x13sPackages.linux_jhovold else throw "Unsupported kernel"
x13sPackages.linux_jhovold
else
throw "Unsupported kernel"
); );
dtb = "${linuxPackages_x13s.kernel}/dtbs/qcom/${dtbName}"; dtb = "${linuxPackages_x13s.kernel}/dtbs/qcom/${dtbName}";
dtbEfiPath = "dtbs/${cfg.kernel}/${config.boot.kernelPackages.kernel.version}/${dtbName}"; dtbEfiPath = "dtbs/${cfg.kernel}/${config.boot.kernelPackages.kernel.version}/${dtbName}";
@ -107,6 +104,17 @@ in
}; };
}; };
isoImage = {
makeUsbBootable = lib.mkForce false;
squashfsCompression = "zstd -Xcompression-level 6";
contents = [
{
source = dtb;
target = "/" + dtbName;
}
];
};
nixpkgs.overlays = [ nixpkgs.overlays = [
(_: super: { (_: super: {
# don't try and use zfs # don't try and use zfs