!oNSIfazDqEcwhcOjSL:matrix.org

disko

340 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko87 Servers

Load older messages


SenderMessageTime
12 Oct 2025
@anton:gersthof.comAnton (he/him) changed their display name from Anton to Anton (he/him).13:18:00
@zimward:zimward.moezimwardis there a way to create read-only btrfs subvols with disko (aka snapshots?) because i use that to restore my rootfs for impermanence14:26:23
@midirhee12:tchncs.de@midirhee12:tchncs.de removed their profile picture.21:28:02
@midirhee12:tchncs.de@midirhee12:tchncs.de removed their display name midirhee12.21:28:21
@midirhee12:tchncs.de@midirhee12:tchncs.de left the room.21:28:34
@jappie:jappie.devjappieI use `postCreateHook` to create a blank subvol when installing: https://app.radicle.xyz/nodes/git.jappie.dev/rad:z4HEZGDPknT12W4fuXc6wM3HtYTf2/tree/hosts/Flugel/disko.nix#L5921:35:54
13 Oct 2025
@vivekanandan_ks:matrix.orgvivekanandan_ks joined the room.18:56:36
14 Oct 2025
@ttamttam:matrix.orgttamttam joined the room.13:58:42
@pinpox:matrix.orgpinpox changed their display name from pinpox to reaktor.21:13:01
@pinpox:matrix.orgpinpox changed their display name from reaktor to pinpox.21:14:31
17 Oct 2025
@lotte:chir.rs@lotte:chir.rs left the room.08:31:33
18 Oct 2025
@dawnofmidnight:catgirl.cloudwhispers (it/fae) changed their display name from dawnofmidnight to whispers.05:34:34
@ardishco:matrix.orgardishco joined the room.10:50:47
19 Oct 2025
@azahi:azahi.ccazahi left the room.15:47:12
@azahi:azahi.ccazahi joined the room.19:49:52
26 Oct 2025
@sir-morton:matrix.orgSir_Morton joined the room.15:34:12
28 Oct 2025
@magic_rb:matrix.redalder.orgmagic_rb do you think that https://github.com/nix-community/disko/blob/3a9450b26e69dcb6f8de6e2b07b3fc1c288d85f5/lib/make-disk-image.nix#L107 could be made a blob of bash or call out to a program? This would allow me to compute the required size semi dynamically. My system closure is 3.9GB according to Nix, the actualy disk usage was 4.3GB so theoratically a hueristic such as "size of the closure * 1.5" should get me pretty close and woudnt need manual attention 11:34:21
@lassulus:lassul.uslassuluscould be turned into an option value that could be overrideable11:36:14
@lassulus:lassul.uslassulusprobably next to diskSize on the disk type11:36:53
@lassulus:lassul.uslassulusaeh imageSize I mean11:37:04
29 Oct 2025
@danishsouls:matrix.orgdanishsouls joined the room.16:02:02
1 Nov 2025
@glepage:matrix.orgGaétan Lepage changed their profile picture.22:53:23
@glepage:matrix.orgGaétan Lepage changed their profile picture.22:54:19
2 Nov 2025
@dawnofmidnight:catgirl.cloudwhispers (it/fae) changed their display name from whispers to whispers (it/fae).17:58:10
@cf11:0x2c.orgchaoflow joined the room.19:06:04
3 Nov 2025
@lillecarl:matrix.orglillecarlhttps://github.com/nix-community/disko/blob/master/example/btrfs-subvolumes.nix Doesn't this conflict with https://btrfs.readthedocs.io/en/latest/ch-mount-options.html "Most mount options apply to the whole filesystem and only options in the first mounted subvolume will take effect. This is due to lack of implementation and may change in the future. This means that (for example) you can’t set per-subvolume nodatacow, nodatasum, or compress using mount options. This should eventually be fixed, but it has proved to be difficult to implement correctly within the Linux VFS framework." quite a bit? Which is the first mounted volume for example?22:00:37
@lillecarl:matrix.orglillecarl* https://github.com/nix-community/disko/blob/master/example/btrfs-subvolumes.nix Doesn't this conflict with https://btrfs.readthedocs.io/en/latest/ch-mount-options.html "Most mount options apply to the whole filesystem and only options in the first mounted subvolume will take effect. This is due to lack of implementation and may change in the future. This means that (for example) you can’t set per-subvolume nodatacow, nodatasum, or compress using mount options. This should eventually be fixed, but it has proved to be difficult to implement correctly within the Linux VFS framework." quite a bit? Which is the first mounted volume for example?22:01:59
@lillecarl:matrix.orglillecarlAaaaaaa 💡 It's different when we're creating the volumes AOT with these options maybe?22:02:50
@lillecarl:matrix.orglillecarl* Aaaaaaa 💡 It's different when we're creating the volumes AOT with these options maybe? Edit: I don't think so, the example seems to be slightly invalid22:07:34
4 Nov 2025
@blimbus:matrix.orgblimbus

Hello, I use disko for all my machines running preservation with tmpfs and btrfs. I've been reoing my homelab and decided to try out bcachefs but currently my system just boots to emergency mode. As I said I'm new to bcachefs, so if I am doing anything obviously wrong that anyone can point out that would be greatly appreciated. Running the same configurations for preservation that I daily drive on my machine so I dont think its anything there. Not sure if I'm just doing subvolumes incorrectly or something like that.

{
  disko.devices = {
    disk = {
      nix = {
        type = "disk";
        device = "/dev/disk/by-id/nvme-WD_BLACK_SN770_1TB_234252800502";
        content = {
          type = "gpt";
          partitions = {
            boot = {
              size = "1G";
              type = "EF00";
              content = {
                type = "filesystem";
                format = "vfat";
                mountpoint = "/boot";
                mountOptions = ["umask=0077"];
              };
            };

            root = {
              size = "100%";
              content = {
                type = "bcachefs";
                filesystem = "root";
                label = "root";
                extraFormatArgs = ["--discard"];
              };
            };
          };
        };
      };

      # NVME raid drives
      nvme-6749 = {
        type = "disk";
        device = "/dev/disk/by-id/nvme-CT2000P310SSD8_24514CF66749";
        content = {
          type = "bcachefs";
          filesystem = "np1";
          label = "np1.6749";
          extraFormatArgs = ["--discard"];
        };
      };

      nvme-7818 = {
        type = "disk";
        device = "/dev/disk/by-id/nvme-CT2000P310SSD8_24514CF67818";
        content = {
          type = "bcachefs";
          filesystem = "np1";
          label = "np1.7818";
          extraFormatArgs = ["--discard"];
        };
      };

      nvme-7847 = {
        type = "disk";
        device = "/dev/disk/by-id/nvme-CT2000P310SSD8_24514CF67847";
        content = {
          type = "bcachefs";
          filesystem = "np1";
          label = "np1.7847";
          extraFormatArgs = ["--discard"];
        };
      };

      nvme-7917 = {
        type = "disk";
        device = "/dev/disk/by-id/nvme-CT2000P310SSD8_24514CF67917";
        content = {
          type = "bcachefs";
          filesystem = "np1";
          label = "np1.7917";
          extraFormatArgs = ["--discard"];
        };
      };

      # HDD raid drives
      hdd-3ALH = {
        type = "disk";
        device = "/dev/disk/by-id/ata-ST4000VN006-3CW104_ZW603ALH";
        content = {
          type = "bcachefs";
          filesystem = "dp1";
          label = "dp1.3ALH";
          extraFormatArgs = ["--discard"];
        };
      };

      hdd-40NG = {
        type = "disk";
        device = "/dev/disk/by-id/ata-ST4000VN006-3CW104_ZW6040NG";
        content = {
          type = "bcachefs";
          filesystem = "dp1";
          label = "dp1.40NG";
          extraFormatArgs = ["--discard"];
        };
      };
    };

    bcachefs_filesystems = {
      root = {
        type = "bcachefs_filesystem";
        extraFormatArgs = [
          "--compression zstd:1"
        ];
        subvolumes = {
          nix = {
            mountpoint = "/nix";
          };
          root = {
            mountpoint = "/nix/persist";
          };
          home = {
            mountpoint = "/nix/persist/home";
          };
        };
      };

      np1 = {
        type = "bcachefs_filesystem";
        extraFormatArgs = [
          "--compression zstd:1"
          "--erasure_code"
          "--data_replicas 1"
          "--metadata_replicas 2"
        ];
        subvolumes = {
          root = {
            mountpoint = "/nix/persist/npool";
          };
        };
      };

      dp1 = {
        type = "bcachefs_filesystem";
        extraFormatArgs = [
          "--compression zstd:10"
          "--replicas 2"
        ];
        subvolumes = {
          root = {
            mountpoint = "/nix/persist/dpool";
          };
        };
      };
    };

    nodev."/" = {
      fsType = "tmpfs";
      mountOptions = [
        "defaults"
        "size=6G"
        "mode=755"
      ];
    };
  };
}
02:20:30

There are no newer messages yet.


Back to Room ListRoom Version: 10