mirror of
https://codeberg.org/mart-w/nixos-x13s.git
synced 2024-11-22 15:04:49 +01:00
add iso
This commit is contained in:
parent
0e16eff1db
commit
43d813662a
48
flake.nix
48
flake.nix
|
@ -22,26 +22,40 @@
|
||||||
|
|
||||||
flake.nixosModules.default = import ./module.nix;
|
flake.nixosModules.default = import ./module.nix;
|
||||||
|
|
||||||
flake.nixosConfigurations.example = inputs.nixpkgs.lib.nixosSystem {
|
flake.nixosConfigurations = {
|
||||||
system = "aarch64-linux";
|
example = inputs.nixpkgs.lib.nixosSystem {
|
||||||
modules = [
|
system = "aarch64-linux";
|
||||||
self.nixosModules.default
|
modules = [
|
||||||
{
|
self.nixosModules.default
|
||||||
nixos-x13s.enable = true;
|
{
|
||||||
nixos-x13s.kernel = "jhovold"; # jhovold is default, but mainline supported
|
nixos-x13s.enable = true;
|
||||||
|
nixos-x13s.kernel = "jhovold"; # jhovold is default, but mainline supported
|
||||||
|
|
||||||
# install multiple kernels! note this increases eval time for each specialization
|
# install multiple kernels! note this increases eval time for each specialization
|
||||||
specialisation = {
|
specialisation = {
|
||||||
mainline.configuration.nixos-x13s.kernel = "mainline";
|
mainline.configuration.nixos-x13s.kernel = "mainline";
|
||||||
};
|
};
|
||||||
|
|
||||||
# allow unfree firmware
|
# allow unfree firmware
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# define your fileSystems
|
# define your fileSystems
|
||||||
fileSystems."/".device = "/dev/notreal";
|
fileSystems."/".device = "/dev/notreal";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
16
module.nix
16
module.nix
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue