!oNSIfazDqEcwhcOjSL:matrix.org

disko

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

Load older messages


SenderMessageTime
1 Jun 2026
@esch:eschbach.house@esch:eschbach.house left the room.15:36:37
@mitch9378:matrix.orgmitch9378 joined the room.17:01:03
2 Jun 2026
@axel_w:matrix.orgaxw joined the room.21:05:48
4 Jun 2026
@allen-liaoo:matrix.orgAllen Liao joined the room.19:09:53
@allen-liaoo:matrix.orgAllen Liao

Hey guys, so I'm upgrading to 26.05.
I have a working luks setup with BTRFS subvolumes:

boot.initrd.luks.devices = {
  cryptroot = {
    device = lib.mkForce "/dev/disk/by-partlabel/disk-main-luks"; # conflicts with disko
    allowDiscards = true;
  };
  cryptswap = {
    device = "/dev/disk/by-partlabel/disk-main-swap";
    allowDiscards = true;
  };
};

disko config:

disko.devices = {
  disk.main = {
    type = "disk";
    device = "/dev/disk/by-id/nvme-Samsung_SSD_990_EVO_Plus_1TB_S7U5NJ0Y750798J"; # /dev/nvme0n1
    content = {
      type = "gpt";
      partitions = {
        swap = {
          content = {
            type = "luks";
            name = "cryptswap";
          };
        };
        luks = {
          size = "100%";
          content = {
            type = "luks";
            name = "cryptroot";
            content = {
              type = "btrfs";
              subvolumes = {
                "@" = {
                  mountpoint = "/";
                };
              };
            };
          };
        };
      };
    };
  };
};

Do I add

fileSystems."/".device = "/dev/mapper/cryptroot";
``
and that's it? what about my swap?
19:12:11
@allen-liaoo:matrix.orgAllen Liao *

Hey guys, so I'm upgrading to 26.05.
I have a working luks setup with BTRFS subvolumes:

boot.initrd.luks.devices = {
  cryptroot = {
    device = lib.mkForce "/dev/disk/by-partlabel/disk-main-luks"; # conflicts with disko
    allowDiscards = true;
  };
  cryptswap = {
    device = "/dev/disk/by-partlabel/disk-main-swap";
    allowDiscards = true;
  };
};

disko config:

disko.devices = {
  disk.main = {
    type = "disk";
    device = "/dev/disk/by-id/nvme-Samsung_SSD_990_EVO_Plus_1TB_S7U5NJ0Y750798J"; # /dev/nvme0n1
    content = {
      type = "gpt";
      partitions = {
        swap = {
          content = {
            type = "luks";
            name = "cryptswap";
          };
        };
        luks = {
          size = "100%";
          content = {
            type = "luks";
            name = "cryptroot";
            content = {
              type = "btrfs";
              subvolumes = {
                "@" = {
                  mountpoint = "/";
                };
              };
            };
          };
        };
      };
    };
  };
};

Do I add

fileSystems."/".device = "/dev/mapper/cryptroot";

and that's it? what about my swap?

19:12:28
@enzime:nixos.devEnzime I don't think you should need to set fileSystems."/".device, disko should automatically set that for you as long as you import the disko NixOS module and your disko configuration into your NixOS configuration 19:36:46
5 Jun 2026
@zimward:zimward.moezimward changed their display name from zimward to zimward @GPN24.19:38:09
@tomasriveral:unredacted.orgTomas Rivera joined the room.20:40:30
6 Jun 2026
@bigbird9:matrix.orgbigbird99 joined the room.00:51:53
@mika:matrix.bohinen.nomikabo joined the room.07:54:15
@worldsgonemad:matrix.orgWorldsGoneMad joined the room.19:55:06
@fluffymoth:matrix.orgfluffymoth joined the room.21:06:42
7 Jun 2026
@likiusinik:matrix.orgLikius Inik joined the room.05:20:13
@zimward:zimward.moezimward changed their display name from zimward @GPN24 to zimward.21:08:08
9 Jun 2026
@magic_rb:matrix.redalder.orgmagic_rb https://github.com/nix-community/disko/pull/1269 hopefully wont ruffle any feathers, but that warning has been driving me up the damn wall for years 20:59:04
10 Jun 2026
@tvd:matrix.orgTom Oostveen [moved to @tom:toostveen.nl] changed their display name from Tom to Tom Oostveen [moved to @tom:toostveen.nl].16:26:32
11 Jun 2026
@noradtux:tnxip.denoradtux joined the room.09:25:06
@dimars86:matrix.orgdimothy joined the room.14:28:54
12 Jun 2026
@lav:xmr.selav joined the room.00:01:34
@edgarrowland:xmr.sebiological computing joined the room.05:45:08
13 Jun 2026
@debtquity:matrix.orgdebtquity set a profile picture.03:23:24
@edgarrowland:xmr.sebiological computing changed their profile picture.05:47:08
@vengmark2:matrix.org@vengmark2:matrix.org left the room.11:42:32
@edgarrowland:xmr.sebiological computing changed their profile picture.11:49:31
@hadal84:matrix.orghαdal84 joined the room.23:08:12
14 Jun 2026
@edgarrowland:xmr.sebiological computing changed their display name from edgar to portobello.19:06:21
15 Jun 2026
@edgarrowland:xmr.sebiological computing changed their display name from portobello to 21ed2.12:09:42
@edgarrowland:xmr.sebiological computing changed their display name from 21ed2 to *namirin.14:40:03
16 Jun 2026
@edgarrowland:xmr.sebiological computing changed their display name from *namirin to biological computing.09:16:55

Show newer messages


Back to Room ListRoom Version: 10