!JQvnJacrwKgtkGHYHO:matrix.org

NixOS + Framework

225 Members
Discussing NixOS in the context of the Framework laptop50 Servers

Load older messages


SenderMessageTime
10 May 2026
@sudoforge:matrix.orgsudoforgethen boot and manually enroll the tpm device20:50:16
@sudoforge:matrix.orgsudoforgethat's basically what i do anyway to add additional security keys20:50:31
@albertlarsan68:albertlarsan.frAlbert LarsanDisko sets up passphrase encryption when no options are given20:50:57
@sudoforge:matrix.orgsudoforgeby default, with no options specified, that is correct20:51:31
@sudoforge:matrix.orgsudoforgebut you can specify a key file20:51:35
@sudoforge:matrix.orgsudoforge or content.enrollFido2 20:51:56
@albertlarsan68:albertlarsan.frAlbert LarsanBut the key file needs to be available in the install env. Also I’ve never got key files to work.20:52:46
@sudoforge:matrix.orgsudoforgewhat's wrong with a passphrase, then? it seems like that needs to be present for you, as a backup option in case PCRs change20:53:35
@sudoforge:matrix.orgsudoforgei'm not seeing the problem, unless you are avoiding a passphrase altogether and relying on the TPM never failing and PCRs never changing20:54:17
@sudoforge:matrix.orgsudoforgebut that has inherent risks IMO20:54:30
@rajil:rajils.comtrumee

Thanks, i used this now. And it built,

nvme1n1         259:1    0   1.8T  0 disk  
├─nvme1n1p1     259:2    0     2G  0 part  /mnt/boot
└─nvme1n1p2     259:3    0   1.8T  0 part  
  └─enc         254:3    0   1.8T  0 crypt 
    ├─pool-swap 254:4    0    98G  0 lvm   [SWAP]
    └─pool-root 254:5    0   1.7T  0 lvm   /mnt/var/log
                                           /mnt/persist
                                           /mnt/nix
                                           /mnt

~```
20:54:35
@sudoforge:matrix.orgsudoforge @trumee you also won't need the /persist subvol if you aren't using the impermanence module 20:55:18
@rajil:rajils.comtrumee right i dont need that. How can i enroll my yubikey with disko. I do something like systemd-cryptenroll --fido2-device=auto /dev/disk 20:56:19
@albertlarsan68:albertlarsan.frAlbert LarsanYes, I like the passphrases. (the PCR selection I have is lax enough that I was able to disable secure boot, boot clonezilla, clone from one disk to another, and reenable secureboot that the disk auto-unlocked) I have both (poor) passphrases and (poor) pcr selections for the servers.20:56:38
@sudoforge:matrix.orgsudoforge
          luks = {
            size = "100%";
            content.type = "luks";
            content.name = "system";
            content.settings.allowDiscards = true;

            # use a fido2 key for unlocking
            content.enrollFido2 = true;

            # do not generate a recovery passphrase
            content.enrollRecovery = false;

            content.content = {
              type = "btrfs";
              ...
            };              
20:56:54
@sudoforge:matrix.orgsudoforgethen i'm not seeing the problem with using disko :P20:57:34
@albertlarsan68:albertlarsan.frAlbert LarsanI do use disko, just that I don’t enroll the TPM using disko20:57:58
@sudoforge:matrix.orgsudoforgewell, i mean for setting up the initial encryption20:58:11
@sudoforge:matrix.orgsudoforgepassphrase, in your case20:58:18
@rajil:rajils.comtrumee do i need compress=zstd:3 or simply compress=zstd ? 20:58:20
@albertlarsan68:albertlarsan.frAlbert LarsanBoth are currently equivalent20:58:33
@albertlarsan68:albertlarsan.frAlbert LarsanBut setting 3 is more explicit20:58:41
@rajil:rajils.comtrumee

this did not work,

          luks = {
            size = "100%";
            content = {
              type = "luks";
              name = "enc";
              enrollFido2 = true;
              settings = {
                allowDiscards = true;
              };
              content = {
                type = "lvm_pv";
                vg = "pool";
              };
            };
          };
20:59:27
@albertlarsan68:albertlarsan.frAlbert LarsanAnd you know what to change depending on whether your storage fills up (increase the number everywhere) or your CPU is hammered (decrease the number, even into the negatives if needed)20:59:32
@rajil:rajils.comtrumeeerror: The option `disko.devices.disk.disk1.content.partitions.luks.content.enrollFido2' does not exist. Definition values:20:59:43
@sudoforge:matrix.orgsudoforgeyou need to update the disko binary you're using, and the disko library you're using21:00:06
@rajil:rajils.comtrumee i used sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode destroy,format,mount /tmp/disk-config.nix from https://github.com/nix-community/disko 21:00:26
@sudoforge:matrix.orgsudoforgeyeah i just checked, it's not released21:00:42
@sudoforge:matrix.orgsudoforge so change /latest to /master 21:00:57
@albertlarsan68:albertlarsan.frAlbert LarsanThat is what is does, asks me for a passphrase at format step.21:01:16

Show newer messages


Back to Room ListRoom Version: 10