| 18 Dec 2023 |
Julia DeMille | here's the config: https://pastebin.com/raw/ZK7SSgZs
those lines are commented out to avoid breakage | 16:40:53 |
matthewcroughan | https://github.com/nix-community/disko/blob/master/example/btrfs-subvolumes.nix | 16:41:41 |
matthewcroughan | I don't see any @ in here? | 16:41:50 |
matthewcroughan | what's the @ for | 16:41:55 |
Julia DeMille | personal convention -- believe it also is necessary for some snapshotting tools regardless, the original @s didn't cause any issues | 16:42:22 |
matthewcroughan | Is it a canonicalisation issue, i.e one path mounting before another, etc? | 16:42:41 |
matthewcroughan | see line 41 of the example | 16:42:55 |
matthewcroughan |
Sub(sub)volume doesn't need a mountpoint as its parent is mounted
| 16:43:23 |
matthewcroughan | * # Sub(sub)volume doesn't need a mountpoint as its parent is mounted | 16:43:26 |
matthewcroughan | Subvolumes must set a mountpoint in order to be mounted, | 16:43:49 |
Julia DeMille | i mean, /opt is within the root subvolume, so /@opt-containers gets its own mountpoint | 16:43:55 |
Julia DeMille | * i mean, /opt is within the root subvolume, so /@opt-containers gets its own mountpoint, /opt/containers | 16:43:59 |
matthewcroughan | Have you built the disko test that is part of your system config? | 16:44:38 |
matthewcroughan | might be an easy way to iterate on it | 16:44:47 |
Julia DeMille | disko test? | 16:44:55 |
matthewcroughan | Yes, by including the disko config you posted, you not only get disko script to partition the disks, you also get a VM Test that is a member of your nixosConfiguration, which will allow you to build and test things, before deploying them to the real world | 16:45:25 |
matthewcroughan | It's in config.system.build.installTest | 16:46:53 |
matthewcroughan | I think it's a mistake to put it there, and it should be in config.system.build.disko.installTest but it's where it is for now | 16:47:13 |
Julia DeMille | i must admit, i am completely out of my element here, and have no idea what to do with that lol -- i appreciate your patience | 16:47:34 |
matthewcroughan | Oh, so your nixosConfiguration is in a Flake right? | 16:47:45 |
Julia DeMille | yep | 16:47:53 |
matthewcroughan | so what is its name? | 16:47:57 |
matthewcroughan | the name of the nixosConfiguration | 16:48:05 |
Julia DeMille | callisto | 16:48:08 |
matthewcroughan | so then nix build .#nixosConfigurations.callisto.config.system.build.installTest -L | 16:48:21 |
matthewcroughan | that will:
- build your nixosConfiguration
- boot a virtual machine
- format and provision virtual disks in that VM according to your disko.nix
| 16:49:36 |
matthewcroughan | if it fails, then you know something is up | 16:49:41 |
Julia DeMille | alright, one moment | 16:49:59 |
Julia DeMille | confusingly, there is a line about md despite me not using it?
trace: warning: mdadm: neither MAILADDR nor PROGRAM has been set. This will cause the \mdmon` service to crash.` | 16:51:36 |
Julia DeMille | * confusingly, there is a line about md despite me not using it?
trace: warning: mdadm: neither MAILADDR nor PROGRAM has been set. This will cause the `mdmon` service to crash.
| 16:51:57 |