disko | 408 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 114 Servers |
| Sender | Message | Time |
|---|---|---|
| 15 Jan 2025 | ||
| 00:34:32 | ||
| 10:01:37 | ||
| 16 Jan 2025 | ||
| 18:15:00 | ||
Hi, to encrypt drives during nixos-anywhere deployment, one must provide a temporary passphrase key file and add it in disko to the LUKS partition as well.However, setting key file under boot.initrd.luks.devices."device".keyFile leads to incorrect initrd-crypttab entry, which prevents automatic TPM unlock down the line since key file isn't available anymore after installation, thus it seems like I need to remove key file entries after disko ran and partitions were mounted, but before the installation starts, do you have any ideas how to deal with that situation? | 18:16:25 | |
| there is passwordFIle | 18:40:33 | |
| epic, missed that | 18:44:53 | |
| * epic, missed that 🙏 | 18:45:01 | |
| https://github.com/nix-community/disko/pull/943 binfmt emulation | 21:34:23 | |
| I tried using QEMU, but it was too slow without KVM | 21:35:10 | |
| 17 Jan 2025 | ||
| Is there a way to run into the VM after finishing the build but before exiting? I would like to modify some files in the image | 00:47:42 | |
| * Is there a way to run commands in the VM after finishing the build but before exiting? I would like to modify some files in the image | 00:47:54 | |
| system.activationScripts seems to do the trick | 02:00:58 | |
| is it possible to have the swap inside a luks lvm and have working hibernation? | 14:14:54 | |
| * is it possible to have the swap inside a luks lvm and have working hibernation with disko? | 14:15:28 | |
| yes | 14:16:04 | |
| I think you need to configure some kernel parameters for that, but I could be mistaken | 14:16:27 | |
| 18 Jan 2025 | ||
| 23:03:28 | ||
| Hi! First time using disko, started out with an example using nixos-anywhere with just one ext4 partition (besides boot), and it worked great! My question: Is it possible to have just /nix mounted on my ext4 partition, and the rest of root (/, /var, etc.) mounted on a differend SSD with zfs? | 23:05:59 | |
| yeah, just point / on the other one and /nix on the one you want /nix to be, you just need to set the mountpoint | 23:23:15 | |
| Thanks! | 23:28:42 | |
One other question: I've seen a few configs that used a post creat hook, something like postCreateHook = "zfs snapshot zroot/local/root@blank";, while other configs don't. What are the implications here. Is it just the inital snapshot that's missing, the "empty" one basically? Do I need that? | 23:29:38 | |
| 19 Jan 2025 | ||
| people make the empty snapshot for impermanence setups where you wipe your rootfs on every boot | 02:38:54 | |
| Ah, right, I've seen that before. That makes sense, thank you! Not doing that for now. | 03:00:51 | |
| For my HDD's, I have a zpool "data" configured like this:
After finishing the install with nixos-anywhere, when I do
What confuses me is the double-use of mountpoint | 03:21:46 | |
| * For my HDD's, I have a zpool "data" configured like this:
After finishing the install with nixos-anywhere, when I do
What confuses me is the double-use of mountpoint | 03:22:36 | |