disko | 357 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 89 Servers |
| Sender | Message | Time |
|---|---|---|
| 10 Dec 2024 | ||
| *disko-install | 06:48:50 | |
| It's because it allows users to flash storage devices that from a different computer without overwriting their own disks. | 06:49:45 | |
| This is some sort of safety feature. | 06:50:00 | |
| 12:52:44 | ||
| 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 | |
| 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 | |
| Am i on the right path? | 12:57:15 | |
| 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 | |
| Just include your main drive for nixos-anywhere in your nixos configuration. and for your data partition use the disko cli | 19:52:12 | |
| thanks | 19:52:42 | |
| I wanted to also use disko to handle mounting the drive in the installed system | 19:52:55 | |
You will need to add a fileSystems entry in your nixos configuration for your data drive. | 19:53:01 | |
| right | 19:53:07 | |
| 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 | |
| I guess that also works. | 19:53:48 | |
| yeah, that way its disko all the way down | 19:54:08 | |
| a bit risky tho, since if the script fails to comment the line, there goes my cat pictures lol | 19:54:23 | |
| i have an off site backup setup tho so im not tooo worried | 19:54:41 | |
| Still time consuming | 19:54:52 | |
| yep | 19:54:58 | |
| it would be great if disko took an argument with a list of which devices to ignore | 19:55:27 | |
| like --ignore-device=/dev/sda | 19:55:39 | |
| and that could be repeated numerous times | 19:55:49 | |
| 11 Dec 2024 | ||
| 10:06:32 | ||
| 14:20:18 | ||
| 21:03:43 | ||
| Running this https://gist.github.com/SkamDart/30af3d3e4d93ee2dbd732ff3645bb29e config and getting the following error
nothing came up in my does it make more sense to write a custom _create attribute that calls out to | 21:13:36 | |
| in my disks.nix I have a btrfs setup like the example
Does disko need to set some mount option differently for the swap subvolume? | 23:46:16 | |
| 12 Dec 2024 | ||
| I found the issue. At the bottom of this answer it says: "Swap file can't be located on a btrfs raid of any sort." | 00:04:11 | |
| * I found the issue. At the bottom of this answer it says: "Swap file can't be located on a btrfs raid of any sort." But alas I recently transitioned mine to a raid setup. Will now move swap over to a non-raid partition and hopefully it will solve the issue. | 00:04:55 | |