!oNSIfazDqEcwhcOjSL:matrix.org

disko

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

Load older messages


SenderMessageTime
27 May 2025
@thou.vow:matrix.orgthou.vowI wonder what is the priority field of ESP in https://github.com/nix-community/disko/blob/master/example/btrfs-subvolumes.nix18:22:07
@thou.vow:matrix.orgthou.vowI can't find documentation of it18:53:00
@thou.vow:matrix.orgthou.vowAlso, how can I pass arguments do mkfs?18:59:32
@lassulus:lassul.uslassuluspriority is for sorting the creation oft partitions. Sometimes you want some partions to be created first and 100% should run last. Otherwise the sizes will overlap19:13:19
@lassulus:lassul.uslassulusYou can pass extraArgs on filesystem type https://github.com/nix-community/disko/blob/master/lib/types/filesystem.nix#L2319:14:35
@thou.vow:matrix.orgthou.vowI see, I want to use that19:18:53
@thou.vow:matrix.orgthou.vowThe highest will be the last?19:19:22
@thou.vow:matrix.orgthou.vowNevermind19:19:56
@thou.vow:matrix.orgthou.vowJust read your message19:20:09
@thou.vow:matrix.orgthou.vow* Just read your complete message19:20:15
@thou.vow:matrix.orgthou.vowThanks19:20:16
@thou.vow:matrix.orgthou.vowThanks!19:20:50
@lassulus:lassul.uslassulusOh my msg didn't mean 100% as the value for priority. So it didn't actually explain it. Actually it is misnamed and lower priorities will be created first19:32:32
@thou.vow:matrix.orgthou.vowI see19:32:49
@lassulus:lassul.uslassulusThe default value is 100019:33:29
@thou.vow:matrix.orgthou.vowI wonder what is the limit19:49:57
@thou.vow:matrix.orgthou.vowJust curious19:50:21
@lassulus:lassul.uslassulusMaxint20:33:51
29 May 2025
@mfossen:matrix.orgMitch joined the room.04:44:20
30 May 2025
@passion-fruit:matrix.org@passion-fruit:matrix.org left the room.15:53:42
1 Jun 2025
@musicmatze:beyermatthi.asmusicmatzeHi! Does disko create systemd mount units for ZFS datasets that I do not automount? And, even moreso: does the nixos/nixpkgs module system create attributes for these mount points? Usecase: I want to make sure a service of mine only starts after I mounted the ZFS dataset (which is encrypted and I am mounting it by hand if necessary).16:48:32
@musicmatze:beyermatthi.asmusicmatze The idea is to systemd.services.SomeService.after = [ "<zfs-dataset-name>.mount" ]; in my config, but I don't want to hard-code the <zfs-dataset-name> part and, if possible, use something like config.systemd.someMountAttribute.UnitName if there is something like this 16:50:10
@musicmatze:beyermatthi.asmusicmatze(because I don't know what actual name is generated)16:50:24
@musicmatze:beyermatthi.asmusicmatze* (because I don't know what actual name is generated, and it doesn't matter really, does it)16:50:32
@0x4a6f:matrix.org[0x4A6F] systemd-fstab-generator create .mount units, that you could utilize. Not sure, if noauto inhibit creation of these units. 17:45:24
@pink_rocky:tchncs.derocky ((位馃挐.馃挐)馃拹) (she/they; ask before DM please) joined the room.23:33:12
@pink_rocky:tchncs.derocky ((位馃挐.馃挐)馃拹) (she/they; ask before DM please)Hello! I鈥檓 Rocky, I was in here before but I lost access to my account23:33:35
@pink_rocky:tchncs.derocky ((位馃挐.馃挐)馃拹) (she/they; ask before DM please)I have this Brtfs on LUKS setup for an older desktop that doesn鈥檛 support UEFI. I鈥檓 configuring Grub to only support LUKS 1 because Grub on MBR apparently only supports LUKS 1. Right now the machine boots into a perpetual blinking underscore. https://github.com/nix-community/disko/issues/1038 for information about LUKS on MBR I鈥檓 pasting my disko configuration and Nix OS configuration. I might try to see if a new hardware configuration would help.23:44:14
@pink_rocky:tchncs.derocky ((位馃挐.馃挐)馃拹) (she/they; ask before DM please)```nix { disko.devices = { disk = { main = { type = "disk"; device = "/dev/sda"; content = { type = "gpt"; partitions = { MBR = { size = "1M"; type = "EF02"; # for grub MBR, no UEFI on this system. }; luks = { # Partial NixOS for my side. size = "300G"; content = { type = "luks"; name = "crypted"; # disable settings.keyFile if you want to use interactive password entry #passwordFile = "/tmp/secret.key"; # Interactive settings = { allowDiscards = true; extraFormatArgs = [ "--type luks1" ]; # keyFile = "/tmp/secret.key"; }; # additionalKeyFiles = [ "/tmp/additionalSecret.key" ]; content = { type = "btrfs"; extraArgs = [ "-f" ]; subvolumes = { "/root" = { mountpoint = "/"; mountOptions = [ "compress=zstd" "noatime" ]; }; "/home" = { mountpoint = "/home"; mountOptions = [ "compress=zstd" "noatime" ]; }; "/nix" = { mountpoint = "/nix"; mountOptions = [ "compress=zstd" "noatime" ]; }; }; }; }; }; encryptedSwap = { size = "16G"; content = { type = "swap"; randomEncryption = true; priority = 100; }; }; }; }; }; }; }; } ```23:44:15
@pink_rocky:tchncs.derocky ((位馃挐.馃挐)馃拹) (she/they; ask before DM please)
{
  disko.devices = {
    disk = {
      main = {
        type = "disk";
        device = "/dev/sda";
        content = {
          type = "gpt";
          partitions = {
            MBR = {
              size = "1M";
              type = "EF02"; # for grub MBR, no UEFI on this system.
            };
            luks = {
              # Partial NixOS for my side.
              size = "300G";
              content = {
                type = "luks";
                name = "crypted";
                # disable settings.keyFile if you want to use interactive password entry
                #passwordFile = "/tmp/secret.key"; # Interactive
                settings = {
                  allowDiscards = true;
                  extraFormatArgs = [ "--type luks1" ];
                  # keyFile = "/tmp/secret.key";
                };
                # additionalKeyFiles = [ "/tmp/additionalSecret.key" ];
                content = {
                  type = "btrfs";
                  extraArgs = [ "-f" ];
                  subvolumes = {
                    "/root" = {
                      mountpoint = "/";
                      mountOptions = [
                        "compress=zstd"
                        "noatime"
                      ];
                    };
                    "/home" = {
                      mountpoint = "/home";
                      mountOptions = [
                        "compress=zstd"
                        "noatime"
                      ];
                    };
                    "/nix" = {
                      mountpoint = "/nix";
                      mountOptions = [
                        "compress=zstd"
                        "noatime"
                      ];
                    };
                  };
                };
              };
            };
	    encryptedSwap = {
		size = "16G";
		content = {
			type = "swap";
			randomEncryption = true;
			priority = 100;
		};
	    };
          };
        };
      };
    };
  };
}
23:44:27

Show newer messages


Back to Room ListRoom Version: 10