| 27 May 2025 |
thou.vow | I wonder what is the priority field of ESP in https://github.com/nix-community/disko/blob/master/example/btrfs-subvolumes.nix | 18:22:07 |
thou.vow | I can't find documentation of it | 18:53:00 |
thou.vow | Also, how can I pass arguments do mkfs? | 18:59:32 |
lassulus | priority 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 overlap | 19:13:19 |
lassulus | You can pass extraArgs on filesystem type https://github.com/nix-community/disko/blob/master/lib/types/filesystem.nix#L23 | 19:14:35 |
thou.vow | I see, I want to use that | 19:18:53 |
thou.vow | The highest will be the last? | 19:19:22 |
thou.vow | Nevermind | 19:19:56 |
thou.vow | Just read your message | 19:20:09 |
thou.vow | * Just read your complete message | 19:20:15 |
thou.vow | Thanks | 19:20:16 |
thou.vow | Thanks! | 19:20:50 |
lassulus | Oh 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 first | 19:32:32 |
thou.vow | I see | 19:32:49 |
lassulus | The default value is 1000 | 19:33:29 |
thou.vow | I wonder what is the limit | 19:49:57 |
thou.vow | Just curious | 19:50:21 |
lassulus | Maxint | 20:33:51 |
| 29 May 2025 |
| Mitch joined the room. | 04:44:20 |
| 30 May 2025 |
| @passion-fruit:matrix.org left the room. | 15:53:42 |
| 1 Jun 2025 |
musicmatze | Hi!
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 | 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 | (because I don't know what actual name is generated) | 16:50:24 |
musicmatze | * (because I don't know what actual name is generated, and it doesn't matter really, does it) | 16:50:32 |
[0x4A6F] | systemd-fstab-generator create .mount units, that you could utilize. Not sure, if noauto inhibit creation of these units. | 17:45:24 |
| rocky ((位馃挐.馃挐)馃拹) (she/they; ask before DM please) joined the room. | 23:33:12 |
rocky ((位馃挐.馃挐)馃拹) (she/they; ask before DM please) | Hello! I鈥檓 Rocky, I was in here before but I lost access to my account | 23:33:35 |
rocky ((位馃挐.馃挐)馃拹) (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 |
rocky ((位馃挐.馃挐)馃拹) (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 |
rocky ((位馃挐.馃挐)馃拹) (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 |