!oNSIfazDqEcwhcOjSL:matrix.org

disko

364 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko93 Servers

Load older messages


SenderMessageTime
8 Dec 2024
@blimbus:matrix.orgblimbuswas 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 config02:11:12
@blimbus:matrix.orgblimbus * 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?02:40:59
@blimbus:matrix.orgblimbus * 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 = false02:50:34
@jj:envs.net@jj:envs.net joined the room.06:58:32
@jj:envs.net@jj:envs.nethello! 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@jj:envs.netDownload disk-configuration.nix06:59:56
@jj:envs.net@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@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
@khaneliman:matrix.orgAustin Horstman joined the room.18:36:30
@thecowboyai:matrix.orgthecowboyai set a profile picture.19:36:37
9 Dec 2024
@spewdins:beeper.comspewdinscan I use disko at all on macos07:21:15
@spewdins:beeper.comspewdinslike with apfs volumes07:21:25
@lassulus:lassul.uslassuluswell I never tested it, but I'm pretty sure no09:52:07
@lassulus:lassul.uslassulus
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
@ahamon:matrix.orgAndy Hamon joined the room.05:43:08
@joerg:thalheim.ioMic92no. disko requires all disks to be specified explicitly06:48:40
@joerg:thalheim.ioMic92*disko-install06:48:50
@joerg:thalheim.ioMic92It's because it allows users to flash storage devices that from a different computer without overwriting their own disks.06:49:45
@joerg:thalheim.ioMic92This is some sort of safety feature.06:50:00
@beat_link:matrix.orgBeatLink joined the room.12:52:44
@beat_link:matrix.orgBeatLinkHey 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 documentation12:56:08
@beat_link:matrix.orgBeatLinkmy 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 script12:57:11
@beat_link:matrix.orgBeatLinkAm i on the right path?12:57:15
@joerg:thalheim.ioMic92 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
@joerg:thalheim.ioMic92Just include your main drive for nixos-anywhere in your nixos configuration. and for your data partition use the disko cli19:52:12
@beat_link:matrix.orgBeatLinkthanks19:52:42
@beat_link:matrix.orgBeatLinkI wanted to also use disko to handle mounting the drive in the installed system19:52:55
@joerg:thalheim.ioMic92 You will need to add a fileSystems entry in your nixos configuration for your data drive. 19:53:01
@beat_link:matrix.orgBeatLinkright19:53:07
@beat_link:matrix.orgBeatLinkI've already went ahead and coded in my script to comment out the data drive during installation and uncomment it once the installation is complete19:53:34

Show newer messages


Back to Room ListRoom Version: 10