| 8 Dec 2024 |
| 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 |