mirror of
https://codeberg.org/mart-w/nixos-x13s.git
synced 2024-11-15 03:54:47 +01:00
try out another iso builder
This commit is contained in:
parent
5920196f4f
commit
e6d95a3a60
55
flake.nix
55
flake.nix
|
@ -49,21 +49,19 @@
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
self.nixosModules.default
|
self.nixosModules.default
|
||||||
{
|
(
|
||||||
nixos-x13s.enable = true;
|
{ config, pkgs, ... }:
|
||||||
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
|
# allow unfree firmware
|
||||||
# specialisation = {
|
nixpkgs.config.allowUnfree = true;
|
||||||
# mainline.configuration.nixos-x13s.kernel = "mainline";
|
|
||||||
# };
|
|
||||||
|
|
||||||
# allow unfree firmware
|
# define your fileSystems
|
||||||
nixpkgs.config.allowUnfree = true;
|
fileSystems."/".device = "/dev/notreal";
|
||||||
|
}
|
||||||
# define your fileSystems
|
)
|
||||||
fileSystems."/".device = "/dev/notreal";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -73,13 +71,42 @@
|
||||||
|
|
||||||
self.nixosModules.default
|
self.nixosModules.default
|
||||||
(
|
(
|
||||||
{ modulesPath, config, ... }:
|
{
|
||||||
|
modulesPath,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
dtb = "${config.boot.kernelPackages.kernel}/dtbs/qcom/${dtbName}";
|
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
|
in
|
||||||
{
|
{
|
||||||
imports = [ "${toString modulesPath}/installer/cd-dvd/iso-image.nix" ];
|
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;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
nixos-x13s = {
|
nixos-x13s = {
|
||||||
|
|
Loading…
Reference in a new issue