task | add support for pinetab2

This commit is contained in:
Don Harper 2024-12-21 15:55:35 -06:00
parent d2e3e094f8
commit aa9b3f52f2
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,53 @@
# Example to create a bios compatible gpt partition
{ lib, ... }: {
disko.devices = {
disk.disk1 = {
device = lib.mkDefault "/dev/mmcblk0";
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
name = "boot";
size = "1M";
type = "EF02";
};
esp = {
name = "ESP";
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
name = "root";
size = "100%";
content = {
type = "lvm_pv";
vg = "pool";
};
};
};
};
};
lvm_vg = {
pool = {
type = "lvm_vg";
lvs = {
root = {
size = "100%FREE";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [ "defaults" ];
};
};
};
};
};
};
}

View file

@ -8,6 +8,10 @@
system = "x86_64-linux";
modules = [ disko.nixosModules.disko ./configuration.nix ];
};
nixosConfigurations.t2 = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [ disko.nixosModules.disko ./configuration.nix ];
};
nixosConfigurations.vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ disko.nixosModules.disko ./configuration-vm.nix ];