disko | 367 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 94 Servers |
| Sender | Message | Time |
|---|---|---|
| 11 Feb 2024 | ||
| * Would it make sense to have a check, that tries to check if there is a key in zpool that is the pool name? | 12:08:25 | |
Well it really should check with regexp and throw a trace if it's anything other than rpool | 12:08:59 | |
In reply to @matthewcroughan:defenestrate.itYeah, I think that's the hope. I haven't tried bcachefs at all. I've just heard k900 talking about it a lot. Or generally been spoken a lot about. | 12:09:02 | |
| There are probably a lot of cases that need to be caught manually with Nix code, this is one of them | 12:09:24 | |
| 12:09:40 | |
| Works! Awesome :) | 12:09:43 | |
| I should make an issue for it. | 12:10:04 | |
| OR even better, a PR for it. | 12:10:11 | |
this is equivalent to a typo, it should be possible to express a type in lib that catches this, hard though, I can see why there's no code written to catch this failure | 12:14:21 | |
| Wondering, is there any option for copying over the keyFile to the remote host? E.g. using ssh :) | 12:58:56 | |
In reply to @matthewcroughan:defenestrate.itYeah, that's fair | 12:59:08 | |
In reply to @eyjhb:eyjhb.dkWhy do that when you could bake the secret into the image | 13:59:18 | |
In reply to @eyjhb:eyjhb.dk* Why do that when you could bake the secret into the disk image | 13:59:29 | |
| if you're referring to nixos-anywhere, I wonder if they have a postDeploy/preDeploy hook that could be used for this, would be a good idea if not yet implemented | 13:59:54 | |
In reply to @matthewcroughan:defenestrate.itBake into the disk image? I might be misunderstanding that | 14:22:31 | |
In reply to @matthewcroughan:defenestrate.itTrue, I need to look into if nixos-anywhere has that option :) Not disko thing yeah :) | 14:23:08 | |
| Not 100% sure if it's in disko yet, but I remember some feature I was shown where you can put data into a disk image, without it being in the Nix store. | 14:23:08 | |
| I have an implementation of this which is really simple, and almost equivalent, which just uses a VM to add secrets to an existing disk image by using loopbacks | 14:24:02 | |
| 14:24:04 | |
| something like this, for example | 14:24:09 | |
| this is unrelated to Disko, but it's similar in the concept | 14:24:22 | |
| * I have an implementation of this which is really simple, and almost equivalent, which just uses a VM to add secrets to an existing disk image by using loopback mounts | 14:24:34 | |
| TL;DR you make the installer/disk image you're going to boot, stateless in the Nix store, then you make a shell script which boots a VM, mounts this image as a loopback, adds the secret in the dir of your choosing, then shuts down | 14:25:10 | |
| * TL;DR you make the installer/disk image you're going to boot, stateless in the Nix store, then you make a shell script which boots a VM, mounts this disk image as a loopback, adds the secret in the dir of your choosing, then shuts down | 14:25:17 | |
In my example it's nix run .#secretImage which would do all of that | 14:26:31 | |
* In my example it's nix run .#secretImage which would do all of that and produce a tarball that isn't in the /nix/store, which contains this secret | 14:26:40 | |
| 18:53:07 | |
| It's actually possible and "really" easy with nixos-anywhere it seems. | 18:53:21 | |
| 12 Feb 2024 | ||
| has anyone explored allowing for disko to only manage part of a disk? i'm thinking of a dual boot windows system and it would be nice to apply disko for the nixos bits while allowing for explicitly avoiding other partitions | 14:09:57 | |
| 13 Feb 2024 | ||
| Has anyone else experienced the issue where your md device appears as /dev/md127 rather than anything useful? hostname: nixos
The device is created as /dev/md127 instead (no md folder in /dev). It says the name is "any:data1" but it doesn't exist there. | 00:51:53 | |