!oNSIfazDqEcwhcOjSL:matrix.org

disko

365 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko94 Servers

Load older messages


SenderMessageTime
22 Dec 2024
@waltmck:matrix.orgwaltmckI'm not using luks, I'm using zfs native encryption00:27:10
@waltmck:matrix.orgwaltmck but I set keylocation="prompt", I'll see if that works 00:27:45
@waltmck:matrix.orgwaltmck Do you see anything obviously stupid in my config? 00:28:06
@waltmck:matrix.orgwaltmck(I separated the datasets part into a different file from the vdev part)00:28:46
@enzime:nixos.devEnzimeoh... I'm not sure if we've implemented any ZFS encryption password handling code00:28:57
@enzime:nixos.devEnzimeis there a particular reason you want to use ZFS native encryption?00:29:26
@waltmck:matrix.orgwaltmck So that I can zfs send incremental encrypted backups to an offsite server, primarily 00:29:55
@enzime:nixos.devEnzimejust wanted to make sure you have an actual usecase as I still see a lot of people recommending to avoid ZFS native encryption00:31:02
@waltmck:matrix.orgwaltmckyeah, I know there are some pitfalls00:31:27
@enzime:nixos.devEnzime
In reply to @waltmck:matrix.org
but I set keylocation="prompt", I'll see if that works
I think it should work
00:33:17
@enzime:nixos.devEnzimehttps://github.com/nix-community/disko/blob/master/lib/types/zfs_volume.nix#L71-L7500:33:23
@enzime:nixos.devEnzimethere is some code for ZFS native encryption support in disko already00:33:36
@enzime:nixos.devEnzime
In reply to @waltmck:matrix.org
Do you see anything obviously stupid in my config?
it looks fine to me
00:35:01
@enzime:nixos.devEnzime is there a reason you have enc/state/root if you have sys as well 00:35:23
@enzime:nixos.devEnzimeas an immutable root?00:35:25
@waltmck:matrix.orgwaltmck sys is unencrypted 00:35:37
@enzime:nixos.devEnzimewhy not just encrypt it all?00:36:19
@enzime:nixos.devEnzimeI'm not sure if you already have code to auto-rollback the root on each boot, you should be able to do something like: https://github.com/Enzime/dotfiles-nix/blob/main/hosts/sigma/hardware-configuration.nix#L57-L59 https://github.com/Enzime/dotfiles-nix/blob/main/modules/impermanence.nix#L20-L3100:37:16
@waltmck:matrix.orgwaltmckThat would also be reasonable. I don't see why it would necessarily be better than encrypting just the mutable parts00:37:16
@enzime:nixos.devEnzime
In reply to @waltmck:matrix.org
That would also be reasonable. I don't see why it would necessarily be better than encrypting just the mutable parts
I guess it would just simplify because you could make sys your rootfs dataset and have one less dataset
00:37:43
@waltmck:matrix.orgwaltmck
In reply to @enzime:nixos.dev
I'm not sure if you already have code to auto-rollback the root on each boot, you should be able to do something like:
https://github.com/Enzime/dotfiles-nix/blob/main/hosts/sigma/hardware-configuration.nix#L57-L59
https://github.com/Enzime/dotfiles-nix/blob/main/modules/impermanence.nix#L20-L31
yeah, I do that on my laptop. I think it's more inconvenience than it's worth so I'm planning on scrapping it
00:37:44
@waltmck:matrix.orgwaltmckI have ran into terrible issues where impermanence fails to mount something and it prevents a usable system from booting00:38:19
@waltmck:matrix.orgwaltmck
In reply to @enzime:nixos.dev
I guess it would just simplify because you could make sys your rootfs dataset and have one less dataset
One reason is that I am using dedup on my /nix partition, so it has to be a separate dataset anyway. dedup on root would be ill-advised
00:39:00
@waltmck:matrix.orgwaltmck
In reply to @enzime:nixos.dev
I guess it would just simplify because you could make sys your rootfs dataset and have one less dataset
* One reason is that I am using dedup on my /nix dataset, so it has to be a separate dataset anyway. dedup on root would be ill-advised
00:39:18
@enzime:nixos.devEnzime I'm not too familiar with dedup, sys and sys/nix are separate-ish datasets no? 00:40:06
@enzime:nixos.devEnzime
In reply to @waltmck:matrix.org
I have ran into terrible issues where impermanence fails to mount something and it prevents a usable system from booting
I haven't had a chance to try it but I heard this is better than impermanence
00:40:20
@enzime:nixos.devEnzimehttps://github.com/willibutz/preservation00:40:22
@enzime:nixos.devEnzime
In reply to @waltmck:matrix.org
I have ran into terrible issues where impermanence fails to mount something and it prevents a usable system from booting
* I haven't had a chance to try it but I've heard this is better than impermanence
00:40:28
@waltmck:matrix.orgwaltmck
In reply to @enzime:nixos.dev
https://github.com/willibutz/preservation
I'll take a look at that!
00:41:17
@waltmck:matrix.orgwaltmck
In reply to @enzime:nixos.dev
I'm not too familiar with dedup, sys and sys/nix are separate-ish datasets no?
ah I see what you mean here. Yeah, root could be mounted on sys (if I encrypted sys)
00:41:41

Show newer messages


Back to Room ListRoom Version: 10