!oNSIfazDqEcwhcOjSL:matrix.org

disko

440 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko119 Servers

Load older messages


SenderMessageTime
6 May 2026
@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 [4094] 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
@magic_rb:matrix.redalder.orgmagic_rbzfs is a bit clunky with imports, exports14:23:40
@magic_rb:matrix.redalder.orgmagic_rbwhat i would do is do LUKS below ZFS14:23:50
@crony:cronyakatsuki.xyzCrony Akatsuki (balkan/slav) I wouldn't be encrypting the drive itself, have no need for that14:24:12
@magic_rb:matrix.redalder.orgmagic_rbah14:24:21
@magic_rb:matrix.redalder.orgmagic_rbspinning rust?14:24:30
@crony:cronyakatsuki.xyzCrony Akatsuki (balkan/slav) yea, hdd14:24:42
@magic_rb:matrix.redalder.orgmagic_rb
    zpool."cyanocitta-zpool" = {
      type = "zpool";

      options."ashift" = "12";

      rootFsOptions = {
        "xattr" = "on";
        "recordsize" = "128K";
        "compression" = "zstd-2";
        "atime" = "off";
        "dnodesize" = "auto";
        "mountpoint" = "none";
      };

      datasets."ds1" = {
        type = "zfs_fs";
        options.mountpoint = "none";
        mountpoint = null;
      };

thats from my newest laptop, xattr = on is i think the default by now, so is dnodesize = auto, but im not a 100% sure

14:26:22
@crony:cronyakatsuki.xyzCrony Akatsuki (balkan/slav) tnx14:29:12
12 May 2026
@artify:artify.zoneRichard Tichý joined the room.11:34:51
13 May 2026
@snowflake:unredacted.orgsnowflake joined the room.12:26:53
14 May 2026
@drupol:matrix.orgPol changed their display name from Pol to Pol (out, touching grass).07:39:05
@drupol:matrix.orgPol changed their display name from Pol (out, touching grass) to Pol.16:33:39
@hazre:matrix.orghaz joined the room.17:04:10
15 May 2026
@erents:dapperepoging.nlerents joined the room.13:33:52
16 May 2026
@sofushl:matrix.orgSofus Lind joined the room.22:58:54
@sofushl:matrix.orgSofus LindHow do i / can i use disko to only manage one specific partiiton? I have a 4 partitions 1 is boot, 2 + 3 is windows, and 4 is the partiiton i want to manage in disko, so that i can declaratively setup nixos with preservation. 23:02:05
17 May 2026
@mrvandalo:tiwag.xyzpalo joined the room.08:40:32
@mrvandalo:terranix.org@mrvandalo:terranix.org left the room.08:40:37
18 May 2026
@not-jack:matrix.orgnot-jackDoes anyone know why my root filesystem is not being imported with zfs?10:16:23
@not-jack:matrix.orgnot-jackimage.png
Download image.png
10:16:36

Show newer messages


Back to Room ListRoom Version: 10