feat(install): add disko direct-url workflow

This commit is contained in:
randogoth 2026-02-04 15:57:45 +02:00
parent 7a42926fba
commit 973bac7ed0
8 changed files with 154 additions and 92 deletions

View file

@ -0,0 +1,58 @@
{ lib, ... }:
{
disko.devices = {
disk.main = {
type = "disk";
device = lib.mkDefault "/dev/vda";
content = {
type = "gpt";
partitions = {
ESP = {
size = "550M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"fmask=0022"
"dmask=0022"
];
};
};
nixos = {
size = "100%";
content = {
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
root = {
mountpoint = "/";
mountOptions = [
"compress=zstd"
];
};
home = {
mountpoint = "/home";
mountOptions = [
"compress=zstd"
];
};
nix = {
mountpoint = "/nix";
mountOptions = [
"compress=zstd"
];
};
};
};
};
};
};
};
};
}