!oNSIfazDqEcwhcOjSL:matrix.org

disko

356 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko89 Servers

Load older messages


SenderMessageTime
11 Dec 2025
@71rd:catgirl.cloud71rd joined the room.00:13:07
@znaniye:matrix.org@znaniye:matrix.org left the room.16:15:32
15 Dec 2025
@n4ch7:n3831.netn4ch723hr3r (putting stuff in your name is cringe) joined the room.01:45:45
@disco_stick:matrix.orgfood style edible product changed their display name from redesign your logo to NPM is best PM.06:17:03
@disco_stick:matrix.orgfood style edible product changed their display name from NPM is best PM to I vibe code in assembly.20:50:37
@disco_stick:matrix.orgfood style edible product changed their display name from I vibe code in assembly to iVibe code assembly.20:50:55
@disco_stick:matrix.orgfood style edible product changed their display name from iVibe code assembly to iVibe assembly for pacemakers.20:51:18
@chris_god:trafkin.comm0lok joined the room.21:54:52
@chris_god:trafkin.comm0lokHello, I'm getting an error with the bcachefs example where 1 device is always cannot be mounted:23:48:11
@chris_god:trafkin.comm0lokhttps://gist.github.com/freexploit/055e3db448f015a0a549e40734946ba423:48:12
@chris_god:trafkin.comm0lokI want to build a vm23:49:03
@chris_god:trafkin.comm0lokso I'm using vmWithDisko23:49:17
16 Dec 2025
@disco_stick:matrix.orgfood style edible product changed their display name from iVibe assembly for pacemakers to vibe code pacemakers.01:03:37
@joebob1232:matrix.orgjoeboe joined the room.05:55:36
@berrij:fairydust.spaceBerriJDo you guys take extra care of versioning disko in your flake or do you just follow master like this? disko = { url = "github:nix-community/disko"; inputs.nixpkgs.follows = "nixpkgs"; };20:03:47
@azahi:azahi.ccazahi changed their display name from azahi to Azat Bahawi.22:00:58
17 Dec 2025
@else42:tchncs.deelse42 set a profile picture.17:58:02
18 Dec 2025
@disco_stick:matrix.orgfood style edible product changed their display name from vibe code pacemakers to team sama.20:17:53
@disco_stick:matrix.orgfood style edible product changed their display name from team sama to 💖Sam❤️‍🔥Altman💖.20:23:23
19 Dec 2025
@disco_stick:matrix.orgfood style edible product changed their display name from 💖Sam❤️‍🔥Altman💖 to nope.03:30:49
21 Dec 2025
@chris_god:trafkin.comm0lok👋 is someone using bcachefs multidevice on a production device (I'm trying to use the disko example) 03:30:13
@disco_stick:matrix.orgfood style edible product changed their display name from nope to food style edible product.16:45:22
22 Dec 2025
@cinerealkiara:matrix.org@cinerealkiara:matrix.org left the room.11:02:18
25 Apr 2024
@zraexy:nixos.devDavid Mell (zraexy) joined the room.23:38:25
@zraexy:nixos.devDavid Mell (zraexy) changed their display name from David Mell to David Mell (zraexy).23:51:57
26 Apr 2024
@raj-magesh:matrix.orgRaj

Couple of questions about NixOS live USBs:

I want to partition my 64 GB USB flash drive into two partitions (FAT32 live USB + ext4 storage), so I used the following disko config:

let
  usb = "/dev/disk/by-id/usb-USB_SanDisk_3.2Gen1_0401a943ae4197a38a6f9070194e9ea2b3fb8dbb7997e05ed1b197c0e28946be4b8f000000000000000000001cf4be6800926418a955810751ab6336-0:0";
in {
  disko.devices = {
    disk = {
      live = {
        type = "disk";
        device = usb;
        content = {
          type = "gpt";
          partitions = {
            ESP = {
              type = "EF00";
              device = "${usb}-part1";
              priority = 0;
              size = "8192M";
              content = {
                type = "filesystem";
                format = "vfat";
              };
            };
            storage = {
              device = "${usb}-part2";
              priority = 1;
              size = "100%";
              content = {
                type = "filesystem";
                format = "ext4";
              };
            };
          };
        };
      };
    };
  };
}

I then copied over the files from the (minimal, non-graphical) NixOS live ISO into partition 1, hoping that the instructions on the Arch wiki would generalize to NixOS, but then my live ISO gets stuck with the following error message:

[...]
Timed out waiting for device /dev/root, trying to mount anyway
mounting /dev/root on /iso...
mount: mounting /dev/root on /mnt-root/iso failed: No such file or directory

An error occurred [...]

How can I use my USB flash drive as both a live USB and as a storage device? I found this relevant Discourse link but there was no resolution to the problem there.

I realize this might not be the best place to ask this, but I figured that folks here would have expertise configuring boot partitions correctly.

02:02:16
@raj-magesh:matrix.orgRaj *

Couple of questions about NixOS live USBs:

I want to partition my 64 GB USB flash drive into two partitions (FAT32 live USB + ext4 storage), so I used the following disko config:

let
  usb = "/dev/disk/by-id/usb-USB_SanDisk_3.2Gen1_0401a943ae4197a38a6f9070194e9ea2b3fb8dbb7997e05ed1b197c0e28946be4b8f000000000000000000001cf4be6800926418a955810751ab6336-0:0";
in {
  disko.devices = {
    disk = {
      live = {
        type = "disk";
        device = usb;
        content = {
          type = "gpt";
          partitions = {
            ESP = {
              type = "EF00";
              device = "${usb}-part1";
              priority = 0;
              size = "8192M";
              content = {
                type = "filesystem";
                format = "vfat";
              };
            };
            storage = {
              device = "${usb}-part2";
              priority = 1;
              size = "100%";
              content = {
                type = "filesystem";
                format = "ext4";
              };
            };
          };
        };
      };
    };
  };
}

I then copied over the files from the (minimal, non-graphical) NixOS live ISO into partition 1, hoping that the instructions on the Arch wiki would generalize to NixOS, but then my live ISO gets stuck with the following error message:

[...]
Timed out waiting for device /dev/root, trying to mount anyway
mounting /dev/root on /iso...
mount: mounting /dev/root on /mnt-root/iso failed: No such file or directory

An error occurred [...]

How can I use my USB flash drive as both a live USB and as a storage device? I found this relevant Discourse link but there was no resolution to the problem there.

I realize this might not be the best place to ask this, but I figured that folks here would have expertise configuring boot partitions correctly.

For reference, the NixOS manual says I should dd the ISO to the disk directly: sudo dd if=<path-to-image> of=/dev/sdX bs=4M conv=fsync

02:12:28
@tim92:matrix.orgtimI don't think that this will work since you need to unmount the live USB to format it as storage device07:16:00
@raj-magesh:matrix.orgRaj
In reply to @tim92:matrix.org
I don't think that this will work since you need to unmount the live USB to format it as storage device
Not sure what you mean, exactly. To clarify, I'm not trying to format the USB while it's live; I'm running this from an existing NixOS install.

If the"live USB" bit uses only ~1 GiB, there should be some way to make use of the remaining space, hopefully.
07:57:47
@perchun:matrix.orgPerchun Pak left the room.07:57:54

Show newer messages


Back to Room ListRoom Version: 10