!oNSIfazDqEcwhcOjSL:matrix.org

disko

417 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko114 Servers

Load older messages


SenderMessageTime
24 Apr 2026
@rasmata:matrix.org@rasmata:matrix.org joined the room.11:08:55
@rasmata:matrix.org@rasmata:matrix.org left the room.11:08:58
@crtified:crtified.meCRTified joined the room.15:29:55
25 Apr 2026
@luk-esc:matrix.orgLukas Eschbacher joined the room.20:14:44
26 Apr 2026
@drsensor:matrix.org૮༼⚆︿⚆༽つ / wildan changed their display name from ૮༼⚆︿⚆༽つ / wildan to ૮༼⚆︿⚆༽つ.02:12:56
@dontblameme:matrix.orgDontBlameMe joined the room.19:39:27
27 Apr 2026
@ninja:worldethicaldataforum.orgNinja joined the room.14:55:58
29 Apr 2026
@pascal.sthamer:matrix.procyde.onlinePascal Sthamer set a profile picture.06:27:15
@brittonr_:matrix.orgbrittonr removed their profile picture.14:44:27
1 May 2026
@agavista:matrix.orgAga joined the room.17:11:17
@agavista:matrix.orgAga hi, is there a good way to easily deploy disko configs? i have a github repo with a config file, but the disko command is huge and annoying to run on many machines at once 17:12:24
@agavista:matrix.orgAganot to mention needing to clone first17:12:30
@io:meat.computerio I've generally used nixos-anywhere for deploying to fresh machines, not sure if that suits your needs or not 17:17:26
5 May 2026
@tvd:matrix.orgTom I make a devshell so my command turns into f=github:dtomvan/puntbestanden nix develop $f -c disko-install --flake $f#boomer -m disko --disk main /dev/nvme0n1 but that's still kinda long 😅 16:21:45
6 May 2026
@berrij:fairydust.spaceBerriJI wonder why all the luks examples set allowDiscards to true. Does someone here know that?13:53:58
@magic_rb:matrix.redalder.orgmagic_rbIts good for ssds, whether its the default, dont know14:05:54
@berrij:fairydust.spaceBerriJHm okay, thanks :)14:08:34
@magic_rb:matrix.redalder.orgmagic_rbDiscard is another name for TRIM, which is telling the SSD "hey im not using these blocks, feel free to GC them". Modern SSDs have a GC on them and use "trimmed" blocks to control fragmentation yada yada14:09:47
@so_halt:matrix.orgso_halt joined the room.19:50:06
@so_halt:matrix.orgso_halt

I'm trying to do a fresh install using disko-install, but it fails like

Creating new GPT entries in memory.
The operation has completed successfully.
+ sgdisk --align-end --new=1:1MiB:1GiB --partition-guid=1:R --change-name=1:disk-nvme0n1-ESP --typecode=1:8300 --attributes=1:=:0 /dev/nvme0n1
The operation has completed successfully.
+ partprobe /dev/nvme0n1
+ udevadm trigger --subsystem-match=block
+ udevadm settle --timeout 120
+ sgdisk --align-end --new=2:1GiB:-8G --partition-guid=2:R --change-name=2:disk-nvme0n1-luks --typecode=2:8300 --attributes=2:=:0 /dev/nvme0n1
Could not create partition 2 from 2097152 to 959995903
Unable to set partition 2's name to 'disk-nvme0n1-luks'!
Could not change partition 2's type code to 8300!
Error encountered; not saving changes.
+ sgdisk --partition-guid=2:R --change-name=2:disk-nvme0n1-luks --typecode=2:8300 --attributes=2:=:0 /dev/nvme0n1
Unable to set partition 2's name to 'disk-nvme0n1-luks'!
Could not change partition 2's type code to 8300!
Error encountered; not saving changes.
+ rm -rf /tmp/tmp.aBFS0bfxTS
Copying store paths
[#################################################################>-----------------------------------------------------------]
 436.34 MiB / 836.22 MiB  |  52% |  1.58 GiB/s   | 00:00:00 remaining                                                          19:48:17 [ERROR] Error copying: "/nix/store/mklp59jc4s3b8wy20jsvkrm55bc44dkp-nix-2.33.4-doc/share/doc/nix/manual/toc.js" -> "/mnt/disko-install-root/nix/store/mklp59jc4s3b8wy20jsvkrm55bc44dkp-nix-2.33.4-doc/share/doc/nix/manual/toc.js"; aborting.
19:48:17 [ERROR] Error copying: "/nix/store/mklp59jc4s3b8wy20jsvkrm55bc44dkp-nix-2.33.4-doc/share/doc/nix/manual/toc.html" -> "/mnt/disko-install-root/nix/store/mklp59jc4s3b8wy20jsvkrm55bc44dkp-nix-2.33.4-doc/share/doc/nix/manual/toc.html"; aborting.
19:48:17 [ERROR] Received error: Error during copy: Read-only file system (os error 30)
19:48:17 [ERROR] Error copying: "/nix/store/mklp59jc4s3b8wy20jsvkrm55bc44dkp-nix-2.33.4-doc/share/doc/nix/manual/tomorrow-night.css" -> "/mnt/disko-install-root/nix/store/mklp59jc4s3b8wy20jsvkrm55bc44dkp-nix-2.33.4-doc/share/doc/nix/manual/tomorrow-nightError: Error during copy: Read-only file system (os error 30)
Loading nix database
installing the boot loader...
chroot: failed to run command ‘/nix/var/nix/profiles/system/activate’: No such file or directory
chroot: failed to run command ‘/nix/var/nix/profiles/system/sw/bin/bash’: No such file or directory
disko-install failed
rmdir: failed to remove '/mnt/disko-install-root': Directory not empty

Any pointers what I might be doing wrong?

19:51:54
@so_halt:matrix.orgso_halt

This is my disk-config

{
  disko.devices = {
    disk = {
      nvme0n1 = {
        device = "/dev/nvme0n1";
        type = "disk";
        content = {
          type = "gpt";
          partitions = {
            ESP = {
              start = "1MiB";
              end = "1GiB";
              content = {
                type = "filesystem";
                format = "vfat";
                mountpoint = "/boot";
              };
            };
            luks = {
              start = "1GiB";
              end = "-8G";
              content = {
                type = "luks";
                name = "crypted";
                content = {
                  type = "zfs";
                  pool = "zroot";
                };
              };
            };
            swap = {
              start = "-8G";
              end = "100%";
              content = {
                type = "swap";
                randomEncryption = true;
              };
            };
          };
        };
      };
    };
    zpool = {
      zroot = {
        type = "zpool";
        rootFsOptions = {
          "com.sun:auto-snapshot" = "false";
        };
        mountpoint = "/";
        postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot@blank$' || zfs snapshot zroot@blank";

        datasets = {
          persist = {
            type = "zfs_fs";
            mountpoint = "/persist";
          };
          nixstore = {
            type = "zfs_fs";
            mountpoint = "/nix";
          };
          home = {
            type = "zfs_fs";
            mountpoint = "/home";
            options."com.sun:auto-snapshot" = "true";
          };
        };
      };
    };
  };
}
19:52:38
@so_halt:matrix.orgso_halt And I'm invoking disko-install like so: nix run --extra-experimental-features flakes --extra-experimental-features nix-command 'github:nix-community/disko/latest#disko-install' -- --write-efi-boot-entries --flake github:my/repo#my-host --disk nvme0n1 /dev/nvme0n1 19:54:01
@so_halt:matrix.orgso_halt(I'm running this on the machine that I want to install the system to, booted from a usb stick with an installer iso)20:08:11
@so_halt:matrix.orgso_halt Looks like the issue is with the start and end config of the partitions. Using size = 1G; for ESP and size = 100%; for LUKS works. 20:44:21
@magic_rb:matrix.redalder.orgmagic_rbThere needs go be a gap between the paritions i think. sgdisk will do it for you if you do 100% but not if you do it manually21:06:07
7 May 2026
@jykrwn_bot:matrix.org@jykrwn_bot:matrix.org joined the room.09:12:39
@mjolnir:nixos.orgNixOS Moderation Bot banned @jykrwn_bot:matrix.org@jykrwn_bot:matrix.org (disagreement).09:12:41
8 May 2026
@jopejoe1:matrix.orgjopejoe1 changed their display name from jopejoe1 (4094@epvpn) to jopejoe1.08:45:49
@hxr404:tchncs.dehxr404 ✨ [it/she] left the room.09:21:19
@crony:cronyakatsuki.xyzCrony Akatsuki (balkan/slav) magic_rb: willing to help me setup zfs on a external hdd, main usecase just for saving rom files and playing them, maybe encrypted backups also 14:23:12

Show newer messages


Back to Room ListRoom Version: 10