!oNSIfazDqEcwhcOjSL:matrix.org

disko

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

Load older messages


SenderMessageTime
3 Mar 2025
@cent:neuland.enterprises@cent:neuland.enterprisesHi, is it possible to use disko on an already installed nixos system?18:21:56
@cent:neuland.enterprises@cent:neuland.enterprisesI would like to configure my btrfs subvolumes in disko 18:23:12
@cent:neuland.enterprises@cent:neuland.enterprises(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
@tiddy-:matrix.orgtiddy- joined the room.15:59:44
@tiddy-:matrix.orgtiddy-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
@projectinitiative:matrix.orgprojectinitiativeI 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.nix16:34:12
@projectinitiative:matrix.orgprojectinitiative * 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
@projectinitiative:matrix.orgprojectinitiative * 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
@lassulus:lassul.uslassulus changed their profile picture.17:48:30
9 Mar 2025
@disco_stick:matrix.orgfood style edible product joined the room.19:39:44
@disco_stick:matrix.orgfood style edible product

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 /home/foobar is not owned by the user, it is owned by uid 1001. The single user created is uid 1000. (Group id is also wrong, but I assume it's the same issue)

I am also using impermanence.

I have tried:

  • environment.persistence."/persist".directories."/home/foobar".user = "foobar"
  • users.users.foobar.home = /home/foobar
  • users.users.foobar.createHome = true
  • home-manager `home.homeDirectory = "/home/foobar"

Any ideas?

22:04:00
10 Mar 2025
@marie:marie.cologneMarie joined the room.15:22:37
@marie:marie.cologneMarieHello, 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
@nezia:matrix.org@nezia:matrix.org left the room.15:45:57
@dantefromhell:matrix.orgdantefromhell joined the room.17:04:57
@dantefromhell:matrix.orgdantefromhellI'm looking for a code example to make `extraConfig` pass a `secret.key` file into `vmWithDisko`. So I can test my encrypted ZFS partitioning scheme17:10:40
@dantefromhell:matrix.orgdantefromhell @brian:bmcgee.ie have you been able to solve this? 18:16:56
@brian:bmcgee.ie@brian:bmcgee.ieAfraid not18:19:26
@dantefromhell:matrix.orgdantefromhell @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
@dantefromhell:matrix.orgdantefromhell* @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
@dantefromhell:matrix.orgdantefromhellhavent been able to spot the syntax error20:00:48
@disco_stick:matrix.orgfood style edible product 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
@disco_stick:matrix.orgfood style edible product changed their display name from Department Store Crust-Punk-Chic to FORWARD TO EXTINCTION.21:54:13
@disco_stick:matrix.orgfood style edible product changed their display name from FORWARD TO EXTINCTION to Like/Share/Subscribe.21:54:53
12 Mar 2025
@cornfused:matrix.orgcornfused joined the room.01:00:21
@joerg:thalheim.ioMic92 @dantefromhell:matrix.org: is this where I added the change for swap? 04:25:45
@disco_stick:matrix.orgfood style edible product changed their display name from Like/Share/Subscribe to KFC is All I See.05:25:10
@dantefromhell:matrix.orgdantefromhell
In reply to @joerg:thalheim.io
@dantefromhell:matrix.org: is this where I added the change for swap?
yes. 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
@waltmck:matrix.orgwaltmck 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
@waltmck:matrix.orgwaltmck 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

Show newer messages


Back to Room ListRoom Version: 10