| 27 Feb 2024 |
matthewcroughan | https://termbin.com/5ggd | 18:20:46 |
matthewcroughan | here's the disko-format script from tests/simple-efi.nix | 18:21:57 |
matthewcroughan | And here's the disko-format script generated for btrfs-subvolumes.nix https://termbin.com/y5nh | 18:23:29 |
matthewcroughan | * And here's the disko-format script generated for tests/btrfs-subvolumes.nix https://termbin.com/y5nh | 18:23:36 |
| 28 Feb 2024 |
| n3v3r_a9a1n joined the room. | 15:46:16 |
n3v3r_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 |
n3v3r_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 |
n3v3r_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 |
n3v3r_a9a1n | w | 18:58:15 |
n3v3r_a9a1n | * | 18:58:33 |
| 29 Feb 2024 |
lassulus | Probably the disko one if you want to use disko | 05:37:25 |
Mic92 | lassulus: first version is ready for review: https://github.com/nix-community/disko/pull/548 | 13:56:40 |
Mic92 | Now added a NixOS test. | 13:56:46 |
lassulus | Have to check tomorrow | 14:41:53 |
raitobezarius | disko authors, I want to poke your brain on a usecase I have | 23:57:48 |
raitobezarius | I am building auto installing images with disko + nixos-install etc. | 23:58:00 |
raitobezarius | I have various variants I can use dynamically to execute different disko scripts | 23:58:09 |
raitobezarius | But sometimes I also have dynamic disks | 23:58:14 |
raitobezarius | Do you think I could just put $PRIMARY_DISK inside of the disk device defn | 23:58:23 |
raitobezarius | and fill them in the environment of the disko script at runtime? | 23:58:30 |
raitobezarius | (mostly, I have divergence due to test environment under virtio do /dev/vdx, SCSI/SATA do /dev/sdx, NVMe do /dev/nvme* | 23:59:32 |
raitobezarius | * (mostly, I have divergence due to test environment under virtio do /dev/vdx, SCSI/SATA do /dev/sdx, NVMe do /dev/nvme*) | 23:59:33 |
raitobezarius | while I could emulate NVMe devices to have the exact same thing in QEMU, I wonder about supporting those usecases | 23:59:49 |
| 1 Mar 2024 |
lassulus | in theory it should work with the gpt type. since we use labels there. in practice this was never tested and somethng will probably break but should be easily fixable | 00:31:12 |
raitobezarius | funnily, I am debugging a case where I use the .raw generation | 00:31:52 |
raitobezarius | and mount it using QEMU and the disk doesn't show up at boot | 00:31:58 |
raitobezarius | which seems to hint at missing drivers or something | 00:32:03 |
raitobezarius | In reply to @lassulus:lassul.us in theory it should work with the gpt type. since we use labels there. in practice this was never tested and somethng will probably break but should be easily fixable but how does that work with label | 00:34:57 |
raitobezarius | I have disk without label | 00:35:00 |
raitobezarius | * I have disks without label | 00:35:02 |