!oNSIfazDqEcwhcOjSL:matrix.org

disko

357 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko89 Servers

Load older messages


SenderMessageTime
22 Feb 2025
@lehmanator:tchncs.deSam LehmanParticularly with tmpfs root, btrfs subvolumes inside a luks on lvm2, and sops secrets. Sops and impermanence are the bane of my existance rn04:45:27
@projectinitiative:matrix.orgprojectinitiativeActually, it looks like I might be able to pre-seed a UUID generated on the pool name and make everything happy at eval time. Seems to be an undocumented flag of bcachefs04:46:10
@f44:matrix.orgf44 joined the room.14:46:08
23 Feb 2025
@projectinitiative:matrix.orgprojectinitiativeI am mostly done with the multi-disk bcachefs implementation. There are some issues and limitations I don't think I can work around at this time. I would really appreciate feedback, questions and a code review for the following PR: https://github.com/nix-community/disko/pull/961/files Unfortunately, it does not pass the current testing framework, and a warning would have to be added regarding a multi-disk-root not being possible due to those limitations. I did not exempt the reboot test as I would like to get some feedback and more eyes on the problem. There might be some creative solutions to be had. Additional information is in the commit message. :)00:09:14
@projectinitiative:matrix.orgprojectinitiativethere is a testing framework here: https://github.com/nix-community/disko/blob/master/docs/testing.md I created my example disko config, then copied a test file, changed the information and ran the test VM, which runs the disko test suite which includes a boot test.00:15:44
26 Feb 2025
@magic_rb:matrix.redalder.orgmagic_rb im setting up a ZFS heavy machine in hetzner. And I'd need to make @blank snapshots of all leaf datasets, i dont see any already done way to make those snapshots in disko, am i missing something? 11:35:15
@magic_rb:matrix.redalder.orgmagic_rb
postCreateHook = ''
  zfs snapshot zroot/ds1/home@blank';
11:38:34
@magic_rb:matrix.redalder.orgmagic_rb *
postCreateHook = ''
  zfs snapshot zroot/ds1/home@blank
'';
11:38:41
@magic_rb:matrix.redalder.orgmagic_rbis a way of doing it hopefully11:38:45
@phaer:matrix.orgphaerYes, that works - and was one of the motivations to create those hooks in the first place :)12:17:44
@magic_rb:matrix.redalder.orgmagic_rb:P 12:17:54
27 Feb 2025
@nam3l33ss:matrix.org·☽•Nameless☆•777 · ± changed their profile picture.17:12:37
@wjjunyor:matrix.orgw changed their display name from w to w - out for 🚬.18:34:07
@wjjunyor:matrix.orgw changed their display name from w - out for 🚬 to w.19:25:30
28 Feb 2025
@gladtherescake:matrix.gladtherescake.euLillian Violet (She/Fae) changed their profile picture.16:33:10
1 Mar 2025
@f44:matrix.orgf44 Is there any way to forward extra args to nix from disko-install? I run a local caching server, but can't use it because the args aren't supported: --extra-substituters http://192.168.1.103/cache --extra-trusted-public-keys = xxx. I get around it by running nix build first, but can it be done in one go? 15:02:16
2 Mar 2025
@dont.wanna.tell:matrix.org@dont.wanna.tell:matrix.org joined the room.19:54:58
@heitoraugusto:matrix.orgHeitor Augusto joined the room.22:57:36
3 Mar 2025
@geebody:matrix.orgmyxos joined the room.04:12:45
@geebody:matrix.orgmyxosI have a running system with several partitions, one of which has a ZFS filesystem. The ZFS partition is configured with a single pool, which houses several datasets. If I want to add another dataset, will this affect any of the others?04:15:29
@lassulus:lassul.uslassuluswell you would have to to run the format script again for there to be any effect, that doesn't happen automatically04:21:49
@lassulus:lassul.uslassulusyou can create the format script and look at it before you run it again04:22:00
@lassulus:lassul.uslassulusbut in theory it should only create the new dataset04:22:09
@lassulus:lassul.uslassulusbut that is relatively new and untested behavior :)04:22:25
@lassulus:lassul.uslassulusbe sure not to run the diskoScript, as this will wipe the drives beforehand04:22:43
@raj-magesh:matrix.orgRaj

I'd like to have this external HDD sometimes plugged in and other times removed, but automatically have LUKS unlocked at boot whenever it's connected. If I remove the disk, the boot process fails at stage 1. Is there a setting I can adjust to fix this apart from mountOptions = ["nofail"]? I'm not too familiar with the initrdUnlock argument: I presume it's what asks for my LUKS password after booting?

      backup_1 = {
        device = hdd_1;
        content = {
          type = "gpt";
          partitions = {
            backup_1 = {
              device = "${hdd_1}-part1";
              priority = 0;
              end = "-0";
              content = {
                type = "luks";
                name = "backup_1";
                initrdUnlock = true;
                extraFormatArgs = ["--pbkdf argon2id"];
                content = {
                  type = "btrfs";
                  extraArgs = ["-f"];
                  mountpoint = "/backup/drive_1";
                  mountOptions = ["compress=zstd" "noatime" "nofail"];
                };
              };
            };
          };
        };
      };
04:30:48
@geebody:matrix.orgmyxos @lassulus You mean don't run the script that was generated by --dry-run? 04:31:44
@lassulus:lassul.uslassulus myxos: that one probably has the disk-deactivate bit at the start, so you could skip that part, and the part of mounting at the end, or run with --mode format 04:33:49
@geebody:matrix.orgmyxosGotcha, I'll try that out, thanks!04:44:21
@lassulus:lassul.uslassulus Raj: hmm, the initrdUnlock adds this to the boot.initrd nixos config, so booting will fail if the device is not available. I don't see an easy way to disable that in nixos, alternative would be to not have the initrdUnlock and unlock it after booting 04:48:05

Show newer messages


Back to Room ListRoom Version: 10