| 26 Feb 2025 |
phaer | Yes, that works - and was one of the motivations to create those hooks in the first place :) | 12:17:44 |
magic_rb | :P | 12:17:54 |
| 27 Feb 2025 |
| ·☽•Nameless☆•777 · ± changed their profile picture. | 17:12:37 |
| w changed their display name from w to w - out for 🚬. | 18:34:07 |
| w changed their display name from w - out for 🚬 to w. | 19:25:30 |
| 28 Feb 2025 |
| Lillian Violet (She/Fae) changed their profile picture. | 16:33:10 |
| 1 Mar 2025 |
f44 | Is there any way to forward extra args to nix from disko-install? I run a local caching server, but can't use it because the args aren't supported: --extra-substituters http://192.168.1.103/cache --extra-trusted-public-keys = xxx. I get around it by running nix build first, but can it be done in one go? | 15:02:16 |
| 2 Mar 2025 |
| @dont.wanna.tell:matrix.org joined the room. | 19:54:58 |
| Heitor Augusto joined the room. | 22:57:36 |
| 3 Mar 2025 |
| myxos joined the room. | 04:12:45 |
myxos | I have a running system with several partitions, one of which has a ZFS filesystem. The ZFS partition is configured with a single pool, which houses several datasets. If I want to add another dataset, will this affect any of the others? | 04:15:29 |
lassulus | well you would have to to run the format script again for there to be any effect, that doesn't happen automatically | 04:21:49 |
lassulus | you can create the format script and look at it before you run it again | 04:22:00 |
lassulus | but in theory it should only create the new dataset | 04:22:09 |
lassulus | but that is relatively new and untested behavior :) | 04:22:25 |
lassulus | be sure not to run the diskoScript, as this will wipe the drives beforehand | 04:22:43 |
Raj | I'd like to have this external HDD sometimes plugged in and other times removed, but automatically have LUKS unlocked at boot whenever it's connected. If I remove the disk, the boot process fails at stage 1. Is there a setting I can adjust to fix this apart from mountOptions = ["nofail"]? I'm not too familiar with the initrdUnlock argument: I presume it's what asks for my LUKS password after booting?
backup_1 = {
device = hdd_1;
content = {
type = "gpt";
partitions = {
backup_1 = {
device = "${hdd_1}-part1";
priority = 0;
end = "-0";
content = {
type = "luks";
name = "backup_1";
initrdUnlock = true;
extraFormatArgs = ["--pbkdf argon2id"];
content = {
type = "btrfs";
extraArgs = ["-f"];
mountpoint = "/backup/drive_1";
mountOptions = ["compress=zstd" "noatime" "nofail"];
};
};
};
};
};
};
| 04:30:48 |
myxos | @lassulus You mean don't run the script that was generated by --dry-run? | 04:31:44 |
lassulus | myxos: that one probably has the disk-deactivate bit at the start, so you could skip that part, and the part of mounting at the end, or run with --mode format | 04:33:49 |
myxos | Gotcha, I'll try that out, thanks! | 04:44:21 |
lassulus | Raj: hmm, the initrdUnlock adds this to the boot.initrd nixos config, so booting will fail if the device is not available. I don't see an easy way to disable that in nixos, alternative would be to not have the initrdUnlock and unlock it after booting | 04:48:05 |
Raj | Got it, thank you! | 04:49:04 |
myxos | @lassulus just to update, adding the dataset via Disko configuration caused my system to crash, and I had to roll back to a previous configuration. I needed to first manually create the dataset (zfs create ...), after which I could update the Nix config (for posterity) without error. | 17:13:34 |
lassulus | ah did you run the create script manually before switching? | 17:14:47 |
myxos | Yep | 17:16:55 |
lassulus | and it still crashed? I'm a bit confused why it worked manually afterwards | 17:17:35 |
myxos | Oh, I did not manually run the create script manually before switching at first. That's when it crashed. | 17:18:22 |
myxos | I was initially hoping the changes to the disko config would be smart enough to just create the new dataset (a bit risky, I know, but no harm done) | 17:19:09 |
lassulus | ah, yeah that was the missing step I guess, but looking at my history I just said looking at it :D | 17:19:13 |
lassulus | I meant looking at it and running it if it looks fine :) | 17:19:31 |