bootable usb: init

This commit is contained in:
twoneis 2025-03-29 21:55:27 +01:00
parent 1ecc3f6f53
commit 714259545b
4 changed files with 47 additions and 0 deletions

21
devices/hufuf/default.nix Normal file
View file

@ -0,0 +1,21 @@
{pkgs, ...}: {
imports = [
./options.nix
];
nixpkgs.hostPlatform = "x86_64-linux";
networking = {
hostName = "hufuf";
};
boot = {
initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod"];
kernelPackages = pkgs.linuxPackages_latest;
loader = {
systemd-boot = {
enable = true;
};
};
};
}

View file

@ -0,0 +1,8 @@
{...}: {
conf = {
host = "laptop";
stateVersion = "24.11";
hmStateVersion = "24.11";
};
}

View file

@ -18,6 +18,11 @@
url = "github:nixos/nixos-hardware";
};
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko/latest";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -2,6 +2,7 @@
nixpkgs,
home-manager,
nixos-hardware,
nixos-generators,
disko,
niri,
lanzaboote,
@ -47,4 +48,16 @@ in {
++ modules;
};
};
packages.x86_64-linux = {
live = nixos-generators.nixosGenerate {
system = "x86_64-linux";
format = "iso";
modules =
[
./devices/hufuf
]
++ modules;
};
};
}