| 8 Dec 2024 |
blimbus | * Does disko support unlocking a LUKS drive via /etc/crypttab after boot?
Seems there used to be a way to disable auto unlocking a specific drive at boot, maybe that's what I'm looking for?
Edit in case anyone ever searches for this: options.intirdUnlock = false | 02:50:34 |
| @jj:envs.net joined the room. | 06:58:32 |
@jj:envs.net | hello! wondering if someone could look over my configuration. i pieced it together from the existing examples, but had (and still am having) a very hard time understanding what they all do. | 06:59:56 |
@jj:envs.net | Download disk-configuration.nix | 06:59:56 |
@jj:envs.net | there is one explicit issue: disko is not mounting /, which i understand it's supposed to do. so i definitely have some problems in the config. | 07:00:36 |
@jj:envs.net | generally also i have not been able to find documentation! for exactly what options disko.devices is expecting, and what all sorts of everything are doing. like zpool is a separate disk from the main disks for some reason, but i have no idea why this is, or what i would read to find out why this is. same goes for what datasets etc are doing. any pointers in this area would be appreciated. | 07:03:39 |
| Austin Horstman joined the room. | 18:36:30 |
| thecowboyai set a profile picture. | 19:36:37 |
| 9 Dec 2024 |
spewdins | can I use disko at all on macos | 07:21:15 |
spewdins | like with apfs volumes | 07:21:25 |
lassulus | well I never tested it, but I'm pretty sure no | 09:52:07 |
lassulus | In reply to @blimbus:matrix.org was also wondering if I have to specify drive names when using disko-install or if I can make it just use the ones in my config afaik disko-install should use the disks specified if not overwritten with --disk? | 09:54:40 |
| 10 Dec 2024 |
| Andy Hamon joined the room. | 05:43:08 |
Mic92 | no. disko requires all disks to be specified explicitly | 06:48:40 |
Mic92 | *disko-install | 06:48:50 |
Mic92 | It's because it allows users to flash storage devices that from a different computer without overwriting their own disks. | 06:49:45 |
Mic92 | This is some sort of safety feature. | 06:50:00 |
| BeatLink joined the room. | 12:52:44 |
BeatLink | Hey guys, So i have a somewhat unusual problem. My laptop contains 2 drives. A root drive that's running NixOS and a data drive thats intended to store my documents, videos, pictures, etc
I want to use disko to manage the mounting of both on the running system but NixOS Anywhere should only format the root drive while leaving the data drive alone. The data drive should only be formatted via a dedicated bash script called "format-data-drive.sh"
I recalled somewhere in the documentation you can generate a format script from disko that can then be consumed by the NixOS anywhere script as an argument but i cant seem to find the documentation | 12:56:08 |
BeatLink | my plan was basically to generate 2 seperate disko scripts. One for the root drive and one for the data drive. The former would be consumed by nixos anywhere, the latter by the data drive format script | 12:57:11 |
BeatLink | Am i on the right path? | 12:57:15 |
Mic92 | BeatLink: disko will only format the disks that you have configured. However I would use not generic names such as nvme0 but instead longer ids that contain the nvme serial numbers. Because nvmes might be not stable and change after reboot: lsblk --output NAME,ID-LINK,FSTYPE,SIZE,MOUNTPOINT | 19:51:17 |
Mic92 | Just include your main drive for nixos-anywhere in your nixos configuration. and for your data partition use the disko cli | 19:52:12 |
BeatLink | thanks | 19:52:42 |
BeatLink | I wanted to also use disko to handle mounting the drive in the installed system | 19:52:55 |
Mic92 | You will need to add a fileSystems entry in your nixos configuration for your data drive. | 19:53:01 |
BeatLink | right | 19:53:07 |
BeatLink | I've already went ahead and coded in my script to comment out the data drive during installation and uncomment it once the installation is complete | 19:53:34 |
Mic92 | I guess that also works. | 19:53:48 |
BeatLink | yeah, that way its disko all the way down | 19:54:08 |