disko | 351 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 88 Servers |
| Sender | Message | Time |
|---|---|---|
| 2 Dec 2025 | ||
| * proper hack, works without disko too
| 00:56:06 | |
| How do you guys handle diffrent /dev/* paths, i use nixos anywhere to add nodes to my cluster but some nodes will have /dev/nvme0n1 as root and some /dev/sda1 and so on Is there way to automatically select which ever is avaialable ? | 12:47:49 | |
| if not maybe we can use some sort of lib.mkOverride where we assign priority on each path - disk pair, and select the first available one ? | 12:50:21 | |
| I usually pass it as a variable. So my config looks like this: https://codeberg.org/BerriJ/nixos-config/src/branch/main/hosts/common/disks/disko-luks-lvm-swap-btrfs.nix#L16 And then I do: nix --experimental-features "nix-command flakes" <br /> run github:nix-community/disko/c5140c6 -- <br /> --mode destroy,format,mount $SCRIPT_DIR/disko-luks-lvm-swap-btrfs.nix <br /> --yes-wipe-all-disks <br /> --argstr disk "${DISK}" <br /> --arg sizes "${SIZES}" <br /> --arg luks_passwordFile "${LUKS_PWF}" | 13:21:53 | |
| 3 Dec 2025 | ||
| 09:48:57 | ||
| Hey! Quick question: Is it possible to perserve certain partitions when using disko to deploy a system? I'd like to preserve the ESP and another recovery partition (can be identified by UUID for example) | 09:49:52 | |
| not easily, you would have to run just the formatScript and have enough space available, you can create some partitons with content = null; which would get ignored by disko, but the offsets for the partition you want to create need to be correct | 09:51:59 | |
| mmh ok. maybe I'll write my own script that handles this for now, let's see :) | 09:53:17 | |
| but thanks! | 09:53:23 | |
| that is probably easier for now | 09:53:41 | |
| 4 Dec 2025 | ||
| 01:47:19 | ||
| 18:09:01 | ||