!oNSIfazDqEcwhcOjSL:matrix.org

disko

284 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko71 Servers

Load older messages


SenderMessageTime
14 May 2025
@musicmatze:beyermatthi.asmusicmatze joined the room.12:45:57
16 May 2025
@brittonr_:matrix.orgbrittonr joined the room.00:13:52
@j:jfi.czjficz joined the room.09:19:49
17 May 2025
@terrorjack:matrix.orgterrorjack set a profile picture.08:53:34
@musicmatze:beyermatthi.asmusicmatzeSomeone using disko with ZFS in here and willing to review my setup? I recently bought a NAS (ugreen) and am a ZFS beginner, so I could use some review. I of course will do performance measurements and all, but a first "did I get things approximately right"-check would be awesome.10:30:12
@musicmatze:beyermatthi.asmusicmatzeI'll probably do a discourse post as well, just in case. 😆10:30:41
@musicmatze:beyermatthi.asmusicmatzeI created a post on discourse here: https://discourse.nixos.org/t/can-someone-review-criticise-my-disko-zfs-setup/64380 - just if someone is curious10:53:03
@oddlama:matrix.orgoddlama changed their display name from oddlama to Malte.20:12:05
19 May 2025
@sandro:supersandro.deSandro 🐧I am basically trying to use https://github.com/NuschtOS/pogo/blob/main/modules/default.nix everywhere 11:44:45
20 May 2025
@thefossguy:matrix.orgPratham Patel (you can mention me) joined the room.05:56:01
21 May 2025
@spaenny:boehm.sh@spaenny:boehm.sh left the room.09:33:15
@oddlama:matrix.orgoddlama changed their display name from Malte to oddlama.17:41:46
@spaenny:tchncs.deSpaenny joined the room.18:21:23
@scl:tchncs.deSebastian (he/him) joined the room.22:18:49
22 May 2025
@lotte:chir.rsCharlotte 🦝 (it/its) joined the room.04:23:09
@lotte:chir.rsCharlotte 🦝 (it/its)I have recently reinstalled a number of my systems to have encrypted bcachefs as rootfs but there is a usability issue because it asks my password several times on boot: https://git.chir.rs/darkkirb/nixos-config/raw/branch/main/machine/rainbow-resort/disko.nix04:31:04
@nicoty:kde.orgnicoty @lotte:chir.rs: I also find that interaction to be annoying. Maybe we should add a systemd service that receives the password from user input once, stores it in a variable, then runs the mount commands for each of the subvolumes in the encrypted filesystem, passing in the password using input redirection? I'm not sure how likely that is to work though. 16:33:00
@lotte:chir.rsCharlotte 🦝 (it/its)for systemd initrds this one seems to work around it: https://git.chir.rs/darkkirb/nixos-config/raw/branch/main/modules/bcachefs.nix16:34:44
@horyzon7:matrix.orghoryzon7 joined the room.22:16:42
@horyzon7:matrix.orghoryzon7

hi all, Im attempting to use disko to replicate the partitioning and formatting steps as described by the nixos manual

this is what I have so far

{ device ? throw, …}: {
  disko.devices = {
    disk = {
      main = {
        inherit device;
        type = “disk”;
        content = {
          type = “gpt”;
          partitions = {
            root = {
              start = “512MiB”;
              end = “-16GiB”;
              content = {
                type = “filesystem”;
                format = “ext4”;
                mountpoint = “/“;
              };
            };
            swap = {
              start = “-16GiB”;
              end = “100%”;
              content = {
                type = “swap”;
                resumeDevice = true;
              };
            };
            ESP = {
              type = “EF00”;
              start = “1MiB”;
              end = “512MiB”;
              content = {
                type = “filesystem”;
                format = “vfat”;
                mountpoint = “/boot”;
                mountOptions = [ “umask=0077” ];
              };
            };
          };
        };
      };
    };
  };
}

sorry for any typos, Im literally having to copy this from the tty

evidently, the above did not work with nix —experimental-features “nix-command flakes” run github:nix-community/disko/latest — —mode destroy,format,mount ./modules/disko-config.nix —arg device ‘“/dev/nvme1n1”’

I got an error that I will try to get word-for-word here (I cant quite yet get it, because I cant scroll in tty and havent used a pager yet)

but the error was related to “cannot create name disk-main-root”, and then “cannot set code 8300”

22:32:13
@horyzon7:matrix.orghoryzon7let me try getting the exact error, one second22:32:22
@horyzon7:matrix.orghoryzon7 Unable to set partition 2’s name to ‘disk-main-root’!
Could not change partition 2’s type code to 8300!
22:33:25
@horyzon7:matrix.orghoryzon7could anyone help me with?22:33:54
@horyzon7:matrix.orghoryzon7again, im just trying to replicate the steps from the nixos manual (https://nixos.org/manual/nixos/stable/#sec-installation)22:34:59
@horyzon7:matrix.orghoryzon7

i’ve also tried adding name = “root” under root = {, but that also did not solve

for some reason, disko is running sgdisk with the flag —change-name=2:disk-main-root instead of the appropriate name that I’m trying to specify by adding name = “root”

22:49:04
@horyzon7:matrix.orghoryzon7 for reference, an ls into /dev/disk/by-partlabel when following the instructions (https://nixos.org/manual/nixos/stable/#sec-installation-manual-partitioning-UEFI) gives ESP root swap, but the above disko config is giving me a disk-main-ESP, as is expected by the erroneous switch of sgdisk 23:00:24
@horyzon7:matrix.orghoryzon7 im noticing the same behavior with simple.efi (https://raw.githubusercontent.com/nix-community/disko/refs/heads/master/example/simple-efi.nix) 23:27:04
23 May 2025
@lassulus:lassul.uslassulusit seems the end of your ESP partition is on the same block as your root partition07:08:30
@lassulus:lassul.uslassulusand it's end overlaps with the swap partition07:08:40
@lassulus:lassul.uslassulusif you want to override the label, you need to set label on the partition07:08:54

Show newer messages


Back to Room ListRoom Version: 10