!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

579 Members
About system administration for running NixOS systems in production. Declaratively manage your operations. | Room recommendations: #networking:nixos.org159 Servers

Load older messages


SenderMessageTime
25 Mar 2024
@conr:mozilla.orgconr * cool. got it setup.00:06:16
@conr:mozilla.orgconr do i need to create a /etc/crypttab 00:27:40
@conr:mozilla.orgconri don't have one00:27:42
@hexa:lossy.networkhexaif this is a fresh install, nixos-generate-config should create hardware-configuration.nix with boot.inird.luks.devices entries00:29:32
@conr:mozilla.orgconri'm trying to just load it in level 2, not level 100:30:38
@elvishjerricco:matrix.orgElvishJerriccostage* 200:30:58
@elvishjerricco:matrix.orgElvishJerricco conr: Don't create /etc/crypttab. Just use the environment.etc option to have nixos create it. 00:31:22
@conr:mozilla.orgconrright stage 200:31:23
@conr:mozilla.orgconrok then add each value manually after?00:32:08
@conr:mozilla.orgconr * ok then add each disk manually after?00:32:16
@elvishjerricco:matrix.orgElvishJerricco
environment.etc.crypttab.text = ''
  cryptssd1 /dev/disk/by-uuid/asdfasdf /dev/mapper/cryptkey keyfile-size=8192
  cryptssd2 /dev/disk/by-uuid/wxyzwxya /dev/mapper/cryptkey keyfile-size=8192
'';
00:32:56
@elvishjerricco:matrix.orgElvishJerricco you don't need to edit /etc/crypttab at all. Just have nixos manage it like that 00:33:07
@conr:mozilla.orgconrooo i like it00:33:14
@conr:mozilla.orgconrWorked on the first try!00:49:02
@conr:mozilla.orgconr how to i make this work recursively? systemd.tmpfiles.rules = [ "d /mnt/data1 0755 conor users" ]; 01:28:26
@elvishjerricco:matrix.orgElvishJerricco conr: You can follow that line with another one like Z /mnt/data1 0755 conor users to recursively set the mode and ownership of a directory 01:32:53
@conr:mozilla.orgconr
In reply to @elvishjerricco:matrix.org
conr: You can follow that line with another one like Z /mnt/data1 0755 conor users to recursively set the mode and ownership of a directory

so like

systemd.tmpfiles.rules = [ 
"d /mnt/data1 0755 conor users" 
"Z /mnt/data1 0755 conor users" 
];
01:38:05
@elvishjerricco:matrix.orgElvishJerriccoI think that would work yea01:38:26
@conr:mozilla.orgconrworks01:43:29
@conr:mozilla.orgconr so for lanzaboote, do i need the niv folder forever? 01:45:10
@conr:mozilla.orgconrlike commit it to my repo?01:45:25
@conr:mozilla.orgconr * so for lanzaboote, do i need the niv nix folder forever? 01:45:43
@conr:mozilla.orgconrmaybe i need to integrate it with my flake?01:50:22
@conr:mozilla.orgconri'll ask secure-boot01:50:55
@ttamttam:matrix.orgttamttam joined the room.01:58:40
@conr:mozilla.orgconr left the room.03:24:13
@nazarewk:matrix.orgnazarewk joined the room.19:46:09
@ma27:nicht-so.sexyma27 joined the room.19:53:42
@alexou:femtodata.comAlex Ou joined the room.20:08:57
@konrad-thorson:matrix.orgkonrad-thorson joined the room.20:12:53

Show newer messages


Back to Room ListRoom Version: 10