Update disko configs
All checks were successful
/ check (push) Successful in 5m17s

This commit is contained in:
Daniel Flanagan 2024-12-26 14:30:29 -06:00
parent a4dcceecf9
commit b9d2c624c0

View file

@ -1,5 +1,21 @@
{lib, ...}: let {lib, ...}: let
inherit (lib.attrsets) mapAttrs' filterAttrs; inherit (lib.attrsets) mapAttrs' filterAttrs;
ESP = size: {
priority = 1;
start = "1M";
end = size;
label = "EFI";
name = "ESP";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"umask=0077"
];
};
};
in { in {
standardWithHibernateSwap = { standardWithHibernateSwap = {
disks ? ["/dev/sda"], disks ? ["/dev/sda"],
@ -80,14 +96,14 @@ in {
}; };
}; };
}; };
standard = {disks ? ["/dev/vda"], ...}: { standard = {disk, ...}: {
# this is my standard partitioning scheme for my machines: an LUKS-encrypted # this is my standard partitioning scheme for my machines: an LUKS-encrypted
# btrfs volume # btrfs volume
disko.devices = { disko.devices = {
disk = { disk = {
primary = { primary = {
type = "disk"; type = "disk";
device = builtins.elemAt disks 0; device = disk;
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
@ -143,36 +159,24 @@ in {
}; };
}; };
unencrypted = {disks ? ["/dev/vda"], ...}: { unencrypted = {disk, ...}: {
disko.devices = { disko.devices = {
disk = { disk = {
primary = { primary = {
type = "disk"; type = "disk";
device = builtins.elemAt disks 0; device = disk;
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
ESP = { ESP = ESP "5G";
label = "EFI";
name = "ESP";
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"defaults"
];
};
};
root = { root = {
size = "100%"; size = "100%";
content = { content = {
type = "btrfs"; type = "btrfs";
extraArgs = ["-f"]; extraArgs = ["-f"];
mountpoint = "/partition-root";
subvolumes = { subvolumes = {
"/root" = { "/rootfs" = {
mountpoint = "/"; mountpoint = "/";
mountOptions = []; mountOptions = [];
}; };