!oNSIfazDqEcwhcOjSL:matrix.org

disko

362 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko92 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
8 Jun 2025
@pink_rocky:tchncs.derocky ((λ💝.💝)💐) (she/they; ask before DM please) I’ll work on that pastebin for you. 01:37:59
@musicmatze:beyermatthi.as@musicmatze:beyermatthi.as

Hello again.
If I use disko to set up my ZFS datasets, but do not mount them during boot (because they are encrypted and the machine must boot without attendence), how can I get the path where ZFS would mount the dataset if I manually zfs mount -a (for example)?

Right now all I can see is (in nix repl): outputs.nixosConfigurations.myHost.config.disko.devices.zpool.zroot.datasets."myDataSet"._name - which does look like something internal I should not base my configuration on, should I?
Because the dataset is not marked for automatic mounting, the attribute outputs.nixosConfigurations.myHost.config.disko.devices.zpool.zroot.datasets."myDataSet".mountpoint is null.

08:55:41
@phaer:matrix.orgphaerIf you don't set a static mountpoint in your disko config, I don't think it's possible for the general case during eval time. I think if you leave it empty the default should just be "/${dataset.name}"? During run time you could just do "zfs get mountpoint dataset"12:31:07
@musicmatze:beyermatthi.as@musicmatze:beyermatthi.as So from what I found during research is that I should use options.mountpoint = "legacy"; and then declare my fileSystems with the filesystems that should be mounted automatically, and for others I must find a better way. Like hard coding stuff maybe 13:07:10
@musicmatze:beyermatthi.as@musicmatze:beyermatthi.asSo... Can I just write my own systemd mount unit for datasets I do not want to mount automatically? And if yes, how can I tell systemd that the dataset encryption password has to be retrieved from the user? I suppose there's ways... Because with a unit, I can make other units depend on it (like for starting navidrome only if the dataset with the music is mounted)13:13:34
9 Jun 2025
@austinbutler:matrix.orgAustin joined the room.03:28:26
@schuelermine:matrix.orgschuelermine joined the room.20:13:58
@schuelermine:matrix.orgschuelermineIs there a way to configure a swap file using Disko?20:14:09

Show newer messages


Back to Room ListRoom Version: 10