!oNSIfazDqEcwhcOjSL:matrix.org

disko

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

Load older messages


SenderMessageTime
15 Sep 2025
@bandithedoge:matrix.orgbandithedogewhat should i do when disko-install keeps running out of disk space?19:42:54
16 Sep 2025
@oli:floof.company-> @oli:catgirl.cloud changed their profile picture.06:59:58
@oli:floof.company-> @oli:catgirl.cloud changed their profile picture.09:04:49
@lassulus:lassul.uslassuluschanged room power levels.10:22:46
@lassulus:lassul.uslassuluschanged room power levels.10:23:39
@lassulus:lassul.uslassuluschanged room power levels.10:24:01
17 Sep 2025
@cezz:lomnik.netmprasil Is it in NixOS live CD? You might want to add --no-deps to let it use local tools rather than pulling dependencies. 14:25:54
@bandithedoge:matrix.orgbandithedogeyeah, i gave up and ended up mounting with disko first and then just running nixos-install14:26:55
@cezz:lomnik.netmprasilYeah the live CD space is quite limited as it's all in memory. --no-deps helps somewhat. 14:27:36
@cezz:lomnik.netmprasil ❓️ What is the purpose of the if statement here or here? 14:28:53
@cezz:lomnik.netmprasil It seems to be some effort to not overwrite pre-existing partition. 14:29:15
@cezz:lomnik.netmprasil But I found it to be quite a footgun. For example it's pretty common that EFI partition is 1GB (or 500M) an due to that if statemen disko silenty didn't format my EFI partition because previously there was also EFI partition with same size. (so when disko recreated GPT, EFI "adopted" contents of previous vfat there) 14:31:45
@cezz:lomnik.netmprasil disko does prompt whether it should destroy data on the disk and --mode destroy,format,mount is also pretty explicit about what the user expects/wants. So this effort to preserve data feels quite a bit surprising. 14:33:38
19 Sep 2025
@bl1nk:matrix.orgbl1nk changed their profile picture.15:21:46
@bl1nk:matrix.orgbl1nk changed their profile picture.15:24:43
@mkg20001:mkg20001.iomkg20001 changed their profile picture.17:20:47
21 Sep 2025
@pink_rocky:tchncs.derocky ((λ💝.💝)💐) (she/they; ask before DM please) changed their display name from ((λ💝.💝)💐) (she/they; ask before DM please) to rocky ((λ💝.💝)💐) (she/they; ask before DM please).16:45:39
22 Sep 2025
@lillecarl:matrix.orglillecarl changed their display name from LilleCarl (Salsa9) to lillecarl.10:36:51
23 Sep 2025
@sinan:sinanmohd.comsinan changed their profile picture.02:47:54
@chris:kruining.euChris P Bacon joined the room.09:46:59
@a-kenji:matrix.orgkenji changed their display name from a-kenji to kenji.10:37:21
@epk123:matrix.org@epk123:matrix.org left the room.20:08:04
@freexploit:trafkin.com@freexploit:trafkin.com 20:37:04
@freexploit:trafkin.com@freexploit:trafkin.com 20:37:30
@freexploit:trafkin.com@freexploit:trafkin.com left the room.20:38:09
@cdata:matrix.orgcdataI ended up filing an issue. Thanks in advance if anyone here has any insights: https://github.com/nix-community/disko/issues/113320:53:54
@cdata:matrix.orgcdata* I ended up filing an issue with a minimal test case demonstrating the problem. Thanks in advance if anyone here has any insights: https://github.com/nix-community/disko/issues/113320:54:38
29 Sep 2025
@drupol:matrix.orgPol joined the room.10:06:33
@no-mood:matrix.orgno-mood

Could you help me understand what the problem is with this config? I would like to have bcachefs with tiered storage between hdd and nvme, but after deploying with nixos-anywhere, the system won't boot.

{ inputs, ... }:
{
  imports = [
    inputs.disko.nixosModules.disko
  ];

  # Enable bcachefs support in kernel
  boot.supportedFilesystems = [ "bcachefs" ];

  disko.devices = {
    disk = {
      # NVMe SSD - Fast tier for metadata and caching
      nvme = {
        type = "disk";
        device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLB256HAHQ-000H1_S425NX2M363531";
        content = {
          type = "gpt";
          partitions = {
            ESP = {
              priority = 1;
              name = "ESP";
              size = "512M";
              type = "EF00";
              content = {
                type = "filesystem";
                format = "vfat";
                mountpoint = "/boot";
                mountOptions = [ "umask=0077" ];
              };
            };
            # NVMe partition for bcachefs (fast tier)
            main = {
              size = "100%";
              content = {
                type = "bcachefs";
                filesystem = "main_bcachefs";
                label = "nvme.main";
                extraFormatArgs = [ "--discard" ];
              };
            };
          };
        };
      };

      # HDD - Bulk storage tier
      hdd = {
        type = "disk";
        device = "/dev/disk/by-id/ata-WDC_WD5000AAKX-60U6AA0_WD-WCC2EU003365";
        content = {
          type = "gpt";
          partitions = {
            # HDD partition for bcachefs (storage tier)
            main = {
              size = "100%";
              content = {
                type = "bcachefs";
                filesystem = "main_bcachefs";
                label = "hdd.backup";
              };
            };
          };
        };
      };
    };

    bcachefs_filesystems = {
      main_bcachefs = {
        type = "bcachefs_filesystem";
        extraFormatArgs = [
          "--compression=zstd"
          "--background_compression=zstd:15"
          # Tiering configuration
          "--background_target=hdd"
          "--foreground_target=nvme"
          "--promote_target=nvme"
          "--metadata_target=nvme"
        ];
        subvolumes = {
          # Root filesystem - equivalent to @root
          "@root" = {
            mountpoint = "/";
            mountOptions = [
              "noatime"
            ];
          };

          # Nix store - equivalent to @nix
          "@nix" = {
            mountpoint = "/nix";
            mountOptions = [
              "noatime"
            ];
          };

          # Persistent data - equivalent to @persist
          "@persist" = {
            mountpoint = "/persist";
            mountOptions = [
              "noatime"
            ];
          };

          # Backups directory
          "@backups" = {
            mountpoint = "/var/backups";
            mountOptions = [
              "noatime"
            ];
          };
        };
      };
    };
  };

}
11:56:03
@lassulus:lassul.uslassulusgood question, what happens during boot?11:58:06

Show newer messages


Back to Room ListRoom Version: 10