!oNSIfazDqEcwhcOjSL:matrix.org

disko

367 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko93 Servers

Load older messages


SenderMessageTime
18 Jan 2026
@nam3l33ss:matrix.org·☽•Nameless☆•777 · ± changed their profile picture.14:59:42
@ed209a:matrix.orged209as far as I can tell, disko still ignores the luks password check18:48:35
@magic_rb:matrix.redalder.orgmagic_rbOh, actually! I have a thing for that, uh https://github.com/numtide/disko-zfs19:29:45
19 Jan 2026
@bl1nk:matrix.orgbl1nk changed their profile picture.10:39:13
20 Jan 2026
@nazarewk:matrix.orgkdnwouldn't those refs (main's tarball) prevent fetching historical versions and require constant flake updates?08:55:52
@magic_rb:matrix.redalder.orgmagic_rbNo, locked tarball protocol. Also, git.numtide.com is no longer publicly accessible, thats why we moved the project to github. I forgot to change the readme, oops08:58:28
@magic_rb:matrix.redalder.orgmagic_rbIf you do end up trying disko-zfs please do let me know how it works for you :)08:59:14
@innocentzer0:matrix.orginnocentzer0 joined the room.14:43:51
24 Jan 2026
@exaltia:chat.exaltia.frExaltia joined the room.19:25:48
@exaltia:chat.exaltia.frExaltia Hello. i may need a bit of help. i've tried to install a SYS-STOR from OVH. install finished, but it doesn't boot. it is probably a bad setup from my disko declarations.
I'm not sure what i have to change
https://pastebin.com/B88qcaht
This is the first time i've done such a configuration without using examples from the disko
19:37:32
@exaltia:chat.exaltia.frExaltia from the rescue, partitions have been setted up "correctly" 19:37:58
25 Jan 2026
@exaltia:chat.exaltia.frExaltia finally fixed my mistakes! 15:39:48
27 Jan 2026
@noneyescat:matrix.orgmomo

Hi, I’m installing nixos in a vm using disko. The installation finishes without errors, but when booting into the system, it drops into emergency mode because /dev/disk/by-partlabel/ROOT cannot be found.

I’ve verified that /dev/disk/by-partlabel/ROOT does exist and can be mounted manually from the iso.

This is my disko config: https://github.com/god464/flake/blob/master/hosts/server/disk.nix

Is there anything I’m missing?

14:01:11
@noneyescat:matrix.orgmomo Additionally, I replaced my disko configuration with example/btrfs-only-root-subvolume.nix from the disko repository, but the same issue still occurs.. Maybe another flake module/setting conflicts with disko? 14:13:12
28 Jan 2026
@exaltia:chat.exaltia.frExaltia changed their profile picture.08:14:24
29 Jan 2026
@exaltia:converser.euExaltia joined the room.00:00:46
@jaymes2:matrix.orgjaymes2 joined the room.18:31:51
30 Jan 2026
@markus.lohmayer:matrix.orgmarkus.lohmayer joined the room.07:46:49
@markus.lohmayer:matrix.orgmarkus.lohmayer

Hope someone can help: Have tiny home server/router with two USB SSDs forming a ZFS mirror. Also each disk has swap and ESP partition. One disk seems to die now (dmesg says usb 3-1: device not accepting address). Even though ZFS should give redundancy, the system becomes unresponsive. Boot loader is on the dying disk. Adding the mountpoint on the second disk does not have effect after rebuild and reboot:

          ESP = {
            size = "512M";
            type = "EF00";
            content = {
              type = "filesystem";
              format = "vfat";
              mountpoint = "/boot-fallback";         # added
              mountOptions = [ "umask=0077" ]; # added
            };
          };

Do I need to do something extra after changing the disko.nix file (adding the two lines above)?
I want to get redundancy for the bootloader. Do I need grub for this (used systemd-boot so far)?

07:59:58
@markus.lohmayer:matrix.orgmarkus.lohmayer *

Hope someone can help: Have tiny home server/router with two USB SSDs forming a ZFS mirror. Also each disk has swap and ESP partition. One disk seems to die now (dmesg says usb 3-1: device not accepting address). Even though ZFS should give redundancy, the system becomes unresponsive. Boot loader is on the dying disk. Adding the mountpoint on the second disk does not have effect after rebuild and reboot:

          ESP = {
            size = "512M";
            type = "EF00";
            content = {
              type = "filesystem";
              format = "vfat";
              mountpoint = "/boot-fallback";   # added
              mountOptions = [ "umask=0077" ]; # added
            };
          };

Do I need to do something extra after changing the disko.nix file (adding the two lines above)?
I want to get redundancy for the bootloader. Do I need grub for this (used systemd-boot so far)?

08:00:21
@markus.lohmayer:matrix.orgmarkus.lohmayerSorry, could have figured this one out directly: Need to create mountpoint manually10:12:02
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan to matthewcroughan @fosdem.13:17:09
@zimward:zimward.moezimward changed their display name from zimward to zimward @fosdem.16:18:40
@lillecarl:matrix.orglillecarl changed their profile picture.22:28:10
1 Feb 2026
@sigmasquadron:matrix.orgFernando Rodrigues changed their display name from SigmaSquadron to Fernando Rodrigues.10:43:23
@zimward:zimward.moezimward changed their display name from zimward @fosdem to zimward.20:36:07
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

Show newer messages


Back to Room ListRoom Version: 10