mirror of
https://codeberg.org/mart-w/nixos-x13s.git
synced 2024-11-14 19:54:47 +01:00
try out another iso builder
This commit is contained in:
parent
5920196f4f
commit
e6d95a3a60
39
flake.nix
39
flake.nix
|
@ -49,21 +49,19 @@
|
|||
system = "aarch64-linux";
|
||||
modules = [
|
||||
self.nixosModules.default
|
||||
(
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
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
|
||||
# specialisation = {
|
||||
# mainline.configuration.nixos-x13s.kernel = "mainline";
|
||||
# };
|
||||
|
||||
# allow unfree firmware
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# define your fileSystems
|
||||
fileSystems."/".device = "/dev/notreal";
|
||||
}
|
||||
)
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -73,13 +71,42 @@
|
|||
|
||||
self.nixosModules.default
|
||||
(
|
||||
{ modulesPath, config, ... }:
|
||||
{
|
||||
modulesPath,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
dtb = "${config.boot.kernelPackages.kernel}/dtbs/qcom/${dtbName}";
|
||||
image = import "${inputs.nixpkgs}/nixos/lib/make-disk-image.nix" {
|
||||
inherit config lib pkgs;
|
||||
|
||||
name = "nixos-x13s-bootstrap";
|
||||
diskSize = "auto";
|
||||
format = "raw";
|
||||
partitionTableType = "efi";
|
||||
copyChannel = false;
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
imports = [ "${toString modulesPath}/installer/cd-dvd/iso-image.nix" ];
|
||||
|
||||
hardware.deviceTree = {
|
||||
enable = true;
|
||||
name = "qcom/${dtbName}";
|
||||
};
|
||||
|
||||
system.build.bootstrap-image = image;
|
||||
|
||||
boot.initrd.systemd.enable = true;
|
||||
boot.initrd.systemd.emergencyAccess = true;
|
||||
boot.loader.grub.enable = false;
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.systemd-boot.graceful = true;
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
nixos-x13s = {
|
||||
|
|
Loading…
Reference in a new issue