disko | 359 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 90 Servers |
| Sender | Message | Time |
|---|---|---|
| 30 Nov 2025 | ||
| * aha, so it's legacy for backwards compat with | 14:19:33 | |
| But i did not refreshed my knowledge in this area for last decade, so i might mix things up. So, if you want to be sure, do additional check. | 14:19:34 | |
| the check will be seeing if i can boot! | 14:19:50 | |
| Here is more in depth explanation of the logic. https://superuser.com/questions/1566558/is-a-boot-sector-considered-to-be-a-partition | 14:22:28 | |
| thanks, that helps :) | 14:26:46 | |
| For those using disko for vmโs disk sizesโฆ I wonder. Are you declaratively setting your vm .qcow2 for example, from the host system? Or from inside the vm. | 17:03:16 | |
| When using disko-install, i get no space left on device | 19:59:11 | |
| I've tried remounting the store with more space, but that doesn't seem to do anything | 20:00:00 | |
| Anyone have tips? | 20:00:07 | |
| Actually, looks like i'm oom'ing now | 20:06:19 | |
| 21:39:45 | ||
| I've been trying to generate a disk image for my pi 4 with disko, but i keep getting an error: "Firmware not found" Any idea on how i could fix it? Repo: https://github.com/ChickenIQ/NixOSPI4 | 21:45:53 | |
| * I've been trying to generate a disk image for my pi 4 with disko, but i keep getting an error on boot: "Firmware not found" Any idea on how i could fix it? Repo: https://github.com/ChickenIQ/NixOSPI4 | 21:47:01 | |
| 1 Dec 2025 | ||
| this seems to be enough to get it to work
| 00:20:12 | |
| proper hack, works without disko too
| 03:27:03 | |
| * proper hack, works without disko too
| 03:27:14 | |
| 16:54:37 | ||
| Redacted or Malformed Event | 17:32:21 | |
| Possibly a general flake question: what is the syntax for applying a flake from a non-github repo and using a specific branch? So far I'm trying:
And getting:
| 17:39:25 | |
| * Possibly a general flake question: what is the syntax for applying a flake from a non-github repo and using a specific branch? So far I'm trying:
And getting:
| 17:40:32 | |
| I guess you need 'git+https://...' instead of just starting directly with 'https://' | 17:44:09 | |
| Thanks, I will try that. | 17:45:08 | |
| 18:39:52 | ||
| Thanks @berrij:fairydust.space | 19:08:31 | |
| Quick question: I want to streamline my deployment process for new machines a bit using disko, flakes and nixos-anywhere. Currently I only use disko without flakes and I crafted this disko config (https://codeberg.org/BerriJ/nixos-config/src/branch/main/hosts/common/disks/disko-luks-lvm-swap-btrfs.nix#L1-L9) which uses some variables for swap-size, etc. Ideally, I would add this config to my flake, and be able to define things like swapsize etc. per host (maybe inside the nixosConfigurations outputs of my flake?) Maybe someone of you has something like that, you would help me a lot ๐๐ | 20:49:57 | |
| Nevermind, I found this: https://github.com/nix-community/nixos-anywhere-examples/blob/main/flake.nix#L28, which should be exactly what I was looking for. Now I need to wrap my head around provisioning luks encryption passwords ๐ | 21:13:51 | |
| 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 | |