disko | 353 Members | |
| disko - declarative disk partitioning - https://github.com/nix-community/disko | 89 Servers |
| Sender | Message | Time |
|---|---|---|
| 3 Mar 2025 | ||
| Hi, is it possible to use disko on an already installed nixos system? | 18:21:56 | |
| I would like to configure my btrfs subvolumes in disko | 18:23:12 | |
| (While I originally installed the system I'm talking about with nixos-anywhere and disko I used a dummy flake and later rebuild the system with my usual flake) | 18:24:09 | |
| 4 Mar 2025 | ||
| 15:59:44 | ||
| Hey! Looking to use disko with nix-anywhere for some cluster management (Arguably foaming at the mouth with how simple it looks). My file-system of choice is bcachefs, mainly because the low-cost snapshots and SSD caching. Looking through the disko examples (and any other sources I've found online) I cant seem to find where to pass CLI formatting options to bcachefs to support options like foreground/background read/writes, encryption, and the like. Is this a supported configuration by disko? If not (if anyone has time) could someone point me to the working file that actually formats the disk? Might try my hand at implementing something like it. I've found the disko script, but I'd have to brush up on my bash to confirm its the script calling the format command. Thanks in advance! | 16:08:09 | |
| I was also looking to do the same thing! Unfortunately in the current form, only simple single disk formatting via the mkfs bindings are supported. I created a branch to explore the more advanced use cases, and it does work (ish) for a more advanced setup. However there are some caveats that will prevent the code from being merged into disko because of the reliance on some external configurations, and a newer kernel implementation. If you are interested, I can write up some basic instructions. If you are feeling like exploring yourself in the meantime, here is how I am using it to provision one of my servers: https://github.com/ProjectInitiative/dotfiles/blob/main/systems/x86_64-linux/capstan2/default.nix and my fork of disko: https://github.com/ProjectInitiative/disko/blob/master/example/bcachefs-multi-disk.nix | 16:34:12 | |
| * I was also looking to do the same thing! Unfortunately in the current form, only simple single disk formatting via the mkfs bindings are supported. I created a branch to explore the more advanced use cases, and it does work (ish) for a more advanced setup. However there are some caveats that will prevent the code from being merged into disko at this time because of the reliance on some external configurations, and a newer kernel implementation, and some testing inconsistencies. If you are interested, I can write up some basic instructions. If you are feeling like exploring yourself in the meantime, here is how I am using it to provision one of my servers: https://github.com/ProjectInitiative/dotfiles/blob/main/systems/x86_64-linux/capstan2/default.nix and my fork of disko: https://github.com/ProjectInitiative/disko/blob/master/example/bcachefs-multi-disk.nix | 16:34:45 | |
| * I was also looking to do the same thing! Unfortunately in the current form, only simple single disk formatting via the mkfs bindings are supported. I created a branch to explore the more advanced use cases, and it does work (ish) for a more advanced setup. However there are some caveats that will prevent the code from being merged into disko at this time because of the reliance on some external configurations, and a newer kernel implementation, and some testing inconsistencies, as well as a bug in systemd and bcachefs that doesn't properly mount UUID multi-disk filesystems on boot, so a custom systemd mount is needed (can't be used for root at the moment). If you are interested, I can write up some basic instructions. If you are feeling like exploring yourself in the meantime, here is how I am using it to provision one of my servers: https://github.com/ProjectInitiative/dotfiles/blob/main/systems/x86_64-linux/capstan2/default.nix and my fork of disko: https://github.com/ProjectInitiative/disko/blob/master/example/bcachefs-multi-disk.nix | 16:36:37 | |
| 17:48:30 | ||
| 9 Mar 2025 | ||
| 19:39:44 | ||
| I'm having a bear of a time getting KDE logging in after making a live disk with disko-install. The issue seems to be that I am also using impermanence. I have tried:
Any ideas? | 22:04:00 | |
| 10 Mar 2025 | ||
| 15:22:37 | ||
| Hello, I want to add a new zfs dataset to my existing config, can I just re-rerun the disko format script, or will it destroy old stuff? I think that should be safe, but I'm not 100% sure from looking at the generated script. | 15:24:53 | |
| 11 Mar 2025 | ||
| 15:45:57 | ||
| 17:04:57 | ||
| I'm looking for a code example to make `extraConfig` pass a `secret.key` file into `vmWithDisko`. So I can test my encrypted ZFS partitioning scheme | 17:10:40 | |
| @brian:bmcgee.ie have you been able to solve this? | 18:16:56 | |
| Afraid not | 18:19:26 | |
| @joerg:thalheim.io as of commit 6c1b834 produces a syntax error during each ``` ++ dirname /nix/store/4vgl19l2swbfvq2x8d7qrsf8qchrypbj-disk-deactivate/disk-deactivate + jq -r --arg disk_to_clear /dev/nvme0n1 -f /nix/store/4vgl19l2swbfvq2x8d7qrsf8qchrypbj-disk-deactivate/disk-deactivate.jq jq: error: syntax error, unexpected ']' (Unix shell quoting issues?) at , line 49: ] jq: 1 compile error ``` commit 8d6dd03 works correctly. | 19:59:40 | |
| * @joerg:thalheim.io as of commit 6c1b834 produces a syntax error during each ++ dirname /nix/store/4vgl19l2swbfvq2x8d7qrsf8qchrypbj-disk-deactivate/disk-deactivate + jq -r --arg disk_to_clear /dev/nvme0n1 -f /nix/store/4vgl19l2swbfvq2x8d7qrsf8qchrypbj-disk-deactivate/disk-deactivate.jq jq: error: syntax error, unexpected ']' (Unix shell quoting issues?) at <top-level>, line 49: ] jq: 1 compile error commit 8d6dd03 works correctly. | 19:59:51 | |
| havent been able to spot the syntax error | 20:00:48 | |
Anyone have a btrfs/disko/impermanence config I can peep? Having trouble getting conflicting definitions for filesystems."/foobar" or having stage1 failures due to mounts not working. | 21:47:38 | |
| 21:54:13 | ||
| 21:54:53 | ||
| 12 Mar 2025 | ||
| 01:00:21 | ||
| @dantefromhell:matrix.org: is this where I added the change for swap? | 04:25:45 | |
| 05:25:10 | ||
In reply to @joerg:thalheim.ioyes. sorry for the mangled message, editor on the phone displays the code highlights properly, but f*** it up once I hit save/ send | 12:52:57 | |
| 13 Mar 2025 | ||
I have a ZFS mirror running as root that was formatted with disko. If I replaced both drives one at a time (i.e. with zpool offline and zpool replace), would the initramfs know where to look to mount the root partition next time I boot? | 15:58:40 | |
in my disko config the drives are referred to as /dev/disk/by-id identifies, so I want to make sure that there is no hard-coded fstab entry or anything that uses those | 15:59:56 | |