| 23 Feb 2024 |
Gaétan Lepage | Thank you for the great project !
It is a blast to use, especially as a NixOS module | 13:12:53 |
| 25 Feb 2024 |
| Rosuavio joined the room. | 15:14:01 |
| 26 Feb 2024 |
@palo:xaos.space | Partitions are a dict now. How does disko know this block blongs on the beginning of a partition?
boot = {
size = "1M";
type = "EF02"; # for grub MBR
};
I guess I can use start and stop, but alle the examples use size. | 07:52:10 |
@palo:xaos.space | Hmm start and end does not work as well. I'm asking because I get :
+ sgdisk --align-end --new=2:0:1M --change-name=2:disk-sda-boot --typecode=2:EF02 /dev/sda
Could not create partition 2 from 1026048 to 2048
I want this partition to be the first, not the second. | 08:01:19 |
phaer | In reply to @palo:xaos.space
Partitions are a dict now. How does disko know this block blongs on the beginning of a partition?
boot = {
size = "1M";
type = "EF02"; # for grub MBR
};
I guess I can use start and stop, but alle the examples use size. There's a priority option on each partition to sort them. Smaller values should be created first | 11:19:54 |
@palo:xaos.space | Ah, I see. Thank you | 11:53:19 |
| pbsds joined the room. | 14:06:52 |
| realmchad joined the room. | 23:08:49 |
| 27 Feb 2024 |
| shlevy joined the room. | 18:11:42 |
shlevy | Does disko support multi-disk btrfs setups? | 18:12:04 |
matthewcroughan | sure does, just a matter of defining it in the module system | 18:12:39 |
matthewcroughan | https://github.com/nix-community/disko/blob/master/example/btrfs-subvolumes.nix | 18:12:56 |
matthewcroughan | https://github.com/nix-community/disko/issues/543 | 18:13:11 |
matthewcroughan | though someone should probably make an example | 18:13:15 |
matthewcroughan | I'm not sure with the advent of bcachefs who would be interested in doing that though | 18:13:41 |
shlevy | 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 | https://github.com/nix-community/disko/issues/99 | 18:15:14 |
matthewcroughan | An answer should be in here | 18:15:20 |
matthewcroughan |
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 | Ah 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-1585983777 | 18:16:52 |
shlevy | Hmm, OK. Are all partitions created before filesystems? | 18:17:11 |
| @lychee:lefishe.club joined the room. | 18:19:13 |
matthewcroughan | If 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 | 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 |