!oNSIfazDqEcwhcOjSL:matrix.org

disko

348 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko87 Servers

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


SenderMessageTime
13 May 2025
@unmolded_can:matrix.orgunmolded_can * Did some more digging into the code and found https://github.com/nix-community/disko/blob/85555d27ded84604ad6657ecca255a03fd878607/lib/types/zfs_fs.nix#L165-L170 which implies there is no way to set https://nixos.org/manual/nixos/stable/options#opt-fileSystems._name_.depends for zfs. I guess I can try adding that config in a seperate file and hope nixos/nixpkgs merges the attributes correctly. Actually rereading the issue I found says to do exactly that (last 2 messages, don't skim). So I guess that is the solution. Use depends directly instead of through disko 08:35:46
@unmolded_can:matrix.orgunmolded_can adding fileSystems."/nix".depends = [ "/ or /etc/zfs/keys" ] doesn't seems to force the mount. It still goes load key root, load key fast (fail), mount root, fail to mount /nix and crash. For whatever reason I can't do fileSystems."/mnt/fast/.depends = ... as nixos during build itself fails with a fileSystems."/mnt/fast".device attribute missing (disko issue?). Either way, I think I'll put my /nix and related boot required mounts on the same pool as root to avoid this zfs key and mount dependency hell (though I'm not sure if I'll escape by encrypting the datasets individually; might have to encrypt whole pool so I only need 1 key load). :/ 09:53:05
@unmolded_can:matrix.orgunmolded_can * adding fileSystems."/nix".depends = [ "/ or /etc/zfs/keys" ] doesn't seems to force the mount. It still goes load key root, load key fast (fail), mount root, fail to mount /nix and crash. For whatever reason I can't do fileSystems."/mnt/fast/.depends = ... as nixos during build itself fails with a No device specified for mount point '/mnt/fast' attribute missing (disko issue?). Either way, I think I'll put my /nix and related boot required mounts on the same pool as root to avoid this zfs key and mount dependency hell (though I'm not sure if I'll escape by encrypting the datasets individually; might have to encrypt whole pool so I only need 1 key load). :/ 09:57:08
@unmolded_can:matrix.orgunmolded_can * adding fileSystems."/nix".depends = [ "/ or /etc/zfs/keys" ] doesn't seems to force the mount. It still goes load key root, load key fast (fail), mount root, fail to mount /nix and crash. For whatever reason I can't do fileSystems."/mnt/fast/.depends = ... as nixos during build itself fails with a No device specified for mount point '/mnt/fast' (disko issue?). Either way, I think I'll put my /nix and related boot required mounts on the same pool as root to avoid this zfs key and mount dependency hell (though I'm not sure if I'll escape by encrypting the datasets individually; might have to encrypt whole pool so I only need 1 key load). :/ 09:57:16

Show newer messages


Back to Room ListRoom Version: 10