disko | 360 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 93 Servers |
| Sender | Message | Time |
|---|---|---|
| 13 May 2025 | ||
| 07:57:15 | ||
| Hi all, struggling though the
` | 08:08:10 | |
| * Hi all, struggling though the
` | 08:09:36 | |
| * Hi all, struggling though the
Based on the stage 1 boot messages, initrd/linux is loading the key zroot/root via a passphrase, then loading the fast pool key. It can't since the fast pool key is in the zroot/root pool. After failing to load the key it then mounts zroot/root which then now makes the key available. | 08:10:22 | |
| 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 (though you have to read the code to know to use the zfs mountpoint as the nix attr key) instead of through disko | 08:31:53 | |
| * 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 | |
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 | |
* 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 | |
* 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 | |
In reply to @lassulus:lassul.usany plans to fix it? 🥹 | 12:38:28 | |
| ah sure, upload your config somewhere and the command to reproduce it and maybe someone can take a look :) | 12:39:05 | |
| maybe I should open an issue?My config is in the same repo named *disk.nix* | 12:45:13 | |
| * maybe I should open an issue?My config is in the same repo named disk.nix | 12:46:11 | |
| 14 May 2025 | ||
| 12:45:57 | ||
| 16 May 2025 | ||
| 00:13:52 | ||
| 09:19:49 | ||
| 17 May 2025 | ||
| 08:53:34 | ||
| Someone using disko with ZFS in here and willing to review my setup? I recently bought a NAS (ugreen) and am a ZFS beginner, so I could use some review. I of course will do performance measurements and all, but a first "did I get things approximately right"-check would be awesome. | 10:30:12 | |
| I'll probably do a discourse post as well, just in case. 😆 | 10:30:41 | |
| I created a post on discourse here: https://discourse.nixos.org/t/can-someone-review-criticise-my-disko-zfs-setup/64380 - just if someone is curious | 10:53:03 | |
| 20:12:05 | ||
| 19 May 2025 | ||
| I am basically trying to use https://github.com/NuschtOS/pogo/blob/main/modules/default.nix everywhere | 11:44:45 | |
| 20 May 2025 | ||
| 05:56:01 | ||
| 21 May 2025 | ||
| 09:33:15 | ||
| 17:41:46 | ||
| 18:21:23 | ||
| 22:18:49 | ||
| 22 May 2025 | ||
| 04:23:09 | ||
| I have recently reinstalled a number of my systems to have encrypted bcachefs as rootfs but there is a usability issue because it asks my password several times on boot: https://git.chir.rs/darkkirb/nixos-config/raw/branch/main/machine/rainbow-resort/disko.nix | 04:31:04 | |
| @lotte:chir.rs: I also find that interaction to be annoying. Maybe we should add a systemd service that receives the password from user input once, stores it in a variable, then runs the mount commands for each of the subvolumes in the encrypted filesystem, passing in the password using input redirection? I'm not sure how likely that is to work though. | 16:33:00 | |