!oNSIfazDqEcwhcOjSL:matrix.org

disko

366 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko93 Servers

Load older messages


SenderMessageTime
27 Feb 2024
@matthewcroughan:defenestrate.itmatthewcroughanthough someone should probably make an example 18:13:15
@matthewcroughan:defenestrate.itmatthewcroughanI'm not sure with the advent of bcachefs who would be interested in doing that though 18:13:41
@shlevy:matrix.orgshlevy

Hmm that’s for subvolumes, not clear how you’d use that for multiple disks.

I’d rather use bcachefs but that’s not implemented yet :) I’m trying to decide whether I need to implement bcachefs multi-disk myself

18:14:31
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/nix-community/disko/issues/9918:15:14
@matthewcroughan:defenestrate.itmatthewcroughanAn answer should be in here 18:15:20
@matthewcroughan:defenestrate.itmatthewcroughan

Looking at the source of this module, I can make that happen by configuring device1 and adding "-m dup -d dup /dev/device2" as extra mkfs options.

18:15:25
@matthewcroughan:defenestrate.itmatthewcroughanAh yeah it seems like it's actually not the best supported, if you can do it at all, it's not a module option like it should be https://github.com/nix-community/disko/issues/261#issuecomment-158598377718:16:52
@shlevy:matrix.orgshlevyHmm, OK. Are all partitions created before filesystems?18:17:11
@lychee:lefishe.club@lychee:lefishe.club joined the room.18:19:13
@matthewcroughan:defenestrate.itmatthewcroughanIf you have a disko configuration and it's loaded in your modules/imports for your config, you can evaluate the resulting disko script which should answer that 18:19:19
@matthewcroughan:defenestrate.itmatthewcroughanhttps://termbin.com/5ggd18:20:46
@matthewcroughan:defenestrate.itmatthewcroughan here's the disko-format script from tests/simple-efi.nix 18:21:57
@matthewcroughan:defenestrate.itmatthewcroughanAnd here's the disko-format script generated for btrfs-subvolumes.nix https://termbin.com/y5nh18:23:29
@matthewcroughan:defenestrate.itmatthewcroughan * And here's the disko-format script generated for tests/btrfs-subvolumes.nix https://termbin.com/y5nh18:23:36
28 Feb 2024
@xxxcrow:matrix.orgn3v3r_a9a1n joined the room.15:46:16
@xxxcrow:matrix.orgn3v3r_a9a1n

I'm about to press the big red button, so will also ask here:

Quick sanity check!
I have sda and nvme in my machine, sda was created with disko
I backed up everything to sda
Now I want to do nixos-anywhere with disko this machine
Will I get my sda wiped, and how to not get my sda wiped?

15:47:46
@xxxcrow:matrix.orgn3v3r_a9a1n

the one above is solved
i have a new one
trying to run nixos-install and get:

error:
       … while calling the 'head' builtin

         at /mnt/nix/store/gzf4zwcakda1nykn6h0avh45xhjhvsz4-source/lib/attrsets.nix:960:11:

          959|         || pred here (elemAt values 1) (head values) then
          960|           head values
             |           ^
          961|         else

       … while evaluating the attribute 'value'

         at /mnt/nix/store/gzf4zwcakda1nykn6h0avh45xhjhvsz4-source/lib/modules.nix:809:9:

          808|     in warnDeprecation opt //
          809|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          810|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: The option `fileSystems."/".device' has conflicting definition values:
       - In `/mnt/nix/store/d1g5graq05ksrkr0w4ym6wbg6xgdkps8-source/flake.nix': "/dev/mapper/nvme-crypt"
       - In `/mnt/nix/store/d1g5graq05ksrkr0w4ym6wbg6xgdkps8-source/hosts/immortal/hardware-configuration.nix': "/dev/disk/by-uuid/d5897059-dab4-4e73-8904-ec78689db058"
       Use `lib.mkForce value` or `lib.mkDefault value` to change the priority on any of these definitions.

18:57:11
@xxxcrow:matrix.orgn3v3r_a9a1n

as i understand /dev/mapper/nvme-crypt comes from disko
and /dev/disk/by-uuid/d5897059-dab4-4e73-8904-ec78689db058 nixos generated

18:58:07
@xxxcrow:matrix.orgn3v3r_a9a1nw18:58:15
@xxxcrow:matrix.orgn3v3r_a9a1n * 18:58:33
29 Feb 2024
@lassulus:lassul.uslassulusProbably the disko one if you want to use disko05:37:25
@joerg:thalheim.ioMic92 lassulus: first version is ready for review: https://github.com/nix-community/disko/pull/548 13:56:40
@joerg:thalheim.ioMic92Now added a NixOS test.13:56:46
@lassulus:lassul.uslassulusHave to check tomorrow 14:41:53
@raitobezarius:matrix.orgraitobezariusdisko authors, I want to poke your brain on a usecase I have23:57:48
@raitobezarius:matrix.orgraitobezariusI am building auto installing images with disko + nixos-install etc.23:58:00
@raitobezarius:matrix.orgraitobezariusI have various variants I can use dynamically to execute different disko scripts23:58:09
@raitobezarius:matrix.orgraitobezariusBut sometimes I also have dynamic disks23:58:14
@raitobezarius:matrix.orgraitobezarius Do you think I could just put $PRIMARY_DISK inside of the disk device defn 23:58:23
@raitobezarius:matrix.orgraitobezariusand fill them in the environment of the disko script at runtime?23:58:30

Show newer messages


Back to Room ListRoom Version: 10