bootable usb: init
This commit is contained in:
parent
1ecc3f6f53
commit
714259545b
4 changed files with 47 additions and 0 deletions
21
devices/hufuf/default.nix
Normal file
21
devices/hufuf/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
8
devices/hufuf/options.nix
Normal file
8
devices/hufuf/options.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{...}: {
|
||||||
|
conf = {
|
||||||
|
host = "laptop";
|
||||||
|
|
||||||
|
stateVersion = "24.11";
|
||||||
|
hmStateVersion = "24.11";
|
||||||
|
};
|
||||||
|
}
|
|
@ -18,6 +18,11 @@
|
||||||
url = "github:nixos/nixos-hardware";
|
url = "github:nixos/nixos-hardware";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixos-generators = {
|
||||||
|
url = "github:nix-community/nixos-generators";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
disko = {
|
disko = {
|
||||||
url = "github:nix-community/disko/latest";
|
url = "github:nix-community/disko/latest";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
13
outputs.nix
13
outputs.nix
|
@ -2,6 +2,7 @@
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
nixos-hardware,
|
nixos-hardware,
|
||||||
|
nixos-generators,
|
||||||
disko,
|
disko,
|
||||||
niri,
|
niri,
|
||||||
lanzaboote,
|
lanzaboote,
|
||||||
|
@ -47,4 +48,16 @@ in {
|
||||||
++ modules;
|
++ modules;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
packages.x86_64-linux = {
|
||||||
|
live = nixos-generators.nixosGenerate {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
format = "iso";
|
||||||
|
|
||||||
|
modules =
|
||||||
|
[
|
||||||
|
./devices/hufuf
|
||||||
|
]
|
||||||
|
++ modules;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue