!oNSIfazDqEcwhcOjSL:matrix.org

disko

357 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko89 Servers

Load older messages


SenderMessageTime
8 Dec 2024
@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
@joerg:thalheim.ioMic92I guess that also works.19:53:48
@beat_link:matrix.orgBeatLinkyeah, that way its disko all the way down19:54:08
@beat_link:matrix.orgBeatLinka bit risky tho, since if the script fails to comment the line, there goes my cat pictures lol19:54:23
@beat_link:matrix.orgBeatLinki have an off site backup setup tho so im not tooo worried19:54:41
@joerg:thalheim.ioMic92Still time consuming19:54:52
@beat_link:matrix.orgBeatLinkyep19:54:58
@beat_link:matrix.orgBeatLinkit would be great if disko took an argument with a list of which devices to ignore19:55:27

Show newer messages


Back to Room ListRoom Version: 10