!oNSIfazDqEcwhcOjSL:matrix.org

disko

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

Load older messages


SenderMessageTime
17 Apr 2025
@lassulus:lassul.uslassulusbut removing that code is also fine22:10:59
18 Apr 2025
@joerg:thalheim.ioMic92 @reflux1291:catgirl.cloud: nixos-install is idempotent. You can use it to repair stuff 05:14:53
@jlesquembre:matrix.orgjlesquembre joined the room.13:29:48
19 Apr 2025
@jopejoe1:matrix.orgjopejoe1 (4094@39c3) changed their display name from jopejoe1 to jopejoe1 (4094@eh22).13:01:24
@nam3l33ss:matrix.org·☽•Nameless☆•777 · ± changed their profile picture.14:31:10
@parismagpie:matrix.orgparismagpieHey19:05:27
20 Apr 2025
@parismagpie:matrix.orgparismagpieso I'm using disko to declare partitioning for two raw disk images (/ in ext4, /home in zfs). Booting the system using qemu to test whether everything works or not, zfs complain about the zpool being mounted on another system ( "pool was previously in use from another system.", "The pool can be imported, use 'zpool import -f' to import the pool." )07:35:01
@parismagpie:matrix.orgparismagpieI'm thinking that it's might be related to the use of diskoImagesScript to create the two raw images. Is there any disko option to avoid this problem ?07:35:55
@parismagpie:matrix.orgparismagpie (I can boot.zfs.forceImportAll = true but that seems a bit overkill) 07:47:57
21 Apr 2025
@creepinson:matrix.org@creepinson:matrix.org joined the room.04:53:02
@creepinson:matrix.org@creepinson:matrix.orgRedacted or Malformed Event04:53:41
@mjolnir:nixos.orgNixOS Moderation Bot banned @creepinson:matrix.org@creepinson:matrix.org (spam).04:53:43
22 Apr 2025
@mjolnir:nixos.orgNixOS Moderation Bot unbanned @creepinson:matrix.org@creepinson:matrix.org.02:28:45
@creepinson:matrix.org@creepinson:matrix.org joined the room.02:41:04
@senorsmile:matrix.orgsenorsmile joined the room.02:51:48
@jaredmontoya:matrix.orgjaredmontoya joined the room.09:32:35
@phaer:matrix.orgphaer

Hm... between two vms, that shouldn't be an issue if networking.hostId is the same for both.

For diskoImagesScript i believe the idea would be that it runs zfs export in the end which also should cause it to import cleanly on another system iiuc.

10:07:47
23 Apr 2025
@f44:matrix.orgf44Redacted or Malformed Event18:42:13
24 Apr 2025
@nicoty:kde.orgnicoty

The PR got merged 🎉 (thanks for your UUID contribution, btw), but I couldn't quite get subvolumes to mount at boot time.

I saw that your PR included code for a custom systemd unit. I haven't tried using that and haven't much experience with writing systemd units, so maybe you could try implementing something with it to get boot-time subvolume mounts to work, if you're interested?

23:32:42
25 Apr 2025
@nrs-status:matrix.orgthirdofmay18081814goya joined the room.16:10:02
@skarmux:matrix.orgNils (Skarmux) joined the room.18:00:35
26 Apr 2025
@nicoty:kde.orgnicoty @projectinitiative:matrix.org: Ignore my last message. Apparently the PR did allow subvolumes to be mounted at boot time and I just didn't implement the test properly to allow the test to unlock the subvolumes. This new PR fixes that though. So I think this means that we can probably now use bcachefs for impermanence, or we're at least one step closer to it 😀. 00:17:04
@nicoty:kde.orgnicoty* @projectinitiative:matrix.org: Ignore my last message. Apparently the PR did allow subvolumes to be mounted at boot time and I just didn't implement the test properly to allow it to unlock the subvolumes. [This new PR fixes that though](https://github.com/nix-community/disko/pull/1021). So I think this means that we can probably now use bcachefs for impermanence, or we're at least one step closer to it 😀.00:19:53
@lys:lys.ee@lys:lys.ee left the room.01:46:44
@disco_stick:matrix.orgredesign your logo changed their display name from High Dynamic Range to SS Bullshit Dreams to nowhere.02:22:05
@ruby:isincredibly.gayruby joined the room.14:42:27
@realhotgirlshit:envs.net@realhotgirlshit:envs.net joined the room.22:53:07
@realhotgirlshit:envs.net@realhotgirlshit:envs.netHey everyone22:53:39
@realhotgirlshit:envs.net@realhotgirlshit:envs.netI’m trying to create a BTRFS subvolumes on LUKS, and I’m wondering if the disko configuration I have is enough, or if I have to adjust the NixOS configuration:22:56:55
@realhotgirlshit:envs.net@realhotgirlshit:envs.net
      disko.nixosModules.disko
      {
        disko.devices = {
          main = {
            type = "disk";
            device = "/dev/vdb";
            content = {
              type = "gpt";
              partitions = {
                # Legacy BIOS, MBR-style partition table.
                boot = {
                  size = "1M";
                  type = "EF02"; # Grub MBR.
                };

                # The LUKS-encrypted root.
                luks = {
                  size = "300G";
                  content = {
                    type = "luks";
                    name = "crypted";

                    # Set up with an interactive password and not a keyfile.
                    settings = {
                      allowDiscards = true;
                    };

                    # The Btrfs filesystem.
                    content = {
                      type = "btrfs";
                      extraArgs = ["-f"]; # Overwrite any existing file system.
                      subvolumes = {
                        "/root" = {
                          mountpoint = "/";
                          mountOptions = [
                            "compress=zstd"
                            "noatime"
                          ];
                        };

                        # The home subvolume.
                        "/home" = {
                          mountpoint = "/home";                          
                          mountOptions = [
                            "compress=zstd"
                            "noatime"
                          ];
                        };

                        # The nix subvolume.
                        "/nix" = {
                          mountpoint = "/nix";                          
                          mountOptions = [
                            "compress=zstd"
                            "noatime"
                          ];
                        };
                      };
                    };
                  };
                };
              };
22:57:03

Show newer messages


Back to Room ListRoom Version: 10