| 28 Dec 2024 |
| @ronnypfannschmidt:matrix.org left the room. | 17:57:45 |
| matthewcroughan changed their display name from matthewcroughan to matthewcroughan (DECT: 56490). | 18:41:49 |
Mic92 | @cinerealkiara:matrix.org: we are heading out | 19:12:07 |
| 29 Dec 2024 |
| xored joined the room. | 01:27:49 |
xored | can anyone help me out? this is driving me crazy, i'm building the same config (asides for disk names) on a VM for testing and on a server for deployment, the server is failing as it apparently cant find /dev/mapper/crypted1 which is my first luks partition, I run this on the VM and it doesn't fail at all, what could be happening here? | 01:28:56 |
xored | this is the last from the logs https://pastebin.com/vif4ag09 | 01:30:40 |
xored | apprently it was some stale zfs stuff on the disks or something, i did a provider install of another distro and apparently that wiped the data or did something that disko didnt by default so when i started nixos-anywhere after that install it worked | 02:08:39 |
xored | i saw disko tries to wipefs and dd some initial blocks but i still ended up in some corrupted state it looks like | 02:09:53 |
| u:a joined the room. | 13:03:51 |
| 30 Dec 2024 |
| Sylvie (They/She) 🏳️⚧️ changed their display name from Sylvie (she/it) 🏳️⚧️ to Sylvie (any) 🏳️⚧️. | 09:02:20 |
| raitobezarius changed their display name from raitobezarius (DECT: 3538 / EPVPN 2681) to raitobezarius. | 16:28:30 |
| matthewcroughan changed their display name from matthewcroughan (DECT: 56490) to matthewcroughan. | 17:27:43 |
| 31 Dec 2024 |
@brian:bmcgee.ie | I'm experimenting with a new setup, using vmVariantWithDisko to test things out. I've defined a few btrfs subvolumes, one of them being /home. It seems that the user creation script is running before the subvolumes are being mounted, which means my user has no home for example.
Is there something I'm missing / misconfigured?
| 17:07:21 |
@brian:bmcgee.ie | I'm seeing nixos systemd[1]: home.mount: Directory /home to mount over is not empty, mounting anyway | 17:12:39 |
@brian:bmcgee.ie | Trying out some suggestions from here https://github.com/nix-community/disko/issues/192 | 17:49:44 |
| phaer changed their display name from phaer (8650 at 38c3) to phaer. | 19:23:46 |
| Tanja (she/her) changed their display name from Tanja (she/her) [DECT 6929] to Tanja (she/her). | 20:59:17 |
Mic92 | Also would go for the neededForBoot | 21:48:19 |
Mic92 | Afaik we are doing zpool destroy, but if that doesn't not help, blkdiscard /dev/nvmen0p1 might | 21:50:05 |
| 1 Jan 2025 |
| NixOS Moderation Botchanged room power levels. | 14:26:06 |
@brian:bmcgee.ie | neededForBoot doesn't seem to help. Been reading through https://github.com/NixOS/nixpkgs/issues/6481 as well. | 16:51:55 |
@brian:bmcgee.ie | Mic92: I adjusted by btrfs volume definitions to more closely match what Lily Foster had, mainly just adding a root mountpoint of /vol/root and removing mountpoint definitions in my subvolumes since their paths matched anyway.
Now neededForBoot seems to have the desired effect and /home is being mounted before the user activation script is trying to do anything.
mdadm = {
raid0 = {
type = "mdadm";
level = 0;
content = {
type = "luks";
name = "crypted-root";
settings = {
allowDiscards = true;
};
content = {
type = "btrfs";
mountpoint = "/vol/root";
subvolumes = {
"/root" = {
mountpoint = "/";
};
"/home" = {
mountOptions = [
"compress=zstd"
];
};
"/nix" = {
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/var/log" = {
mountOptions = [
"compress=zstd"
"nodatacow"
];
};
};
};
};
};
raid5 = {
type = "mdadm";
level = 5;
content = {
type = "luks";
name = "crypted-archive";
content = {
type = "btrfs";
mountpoint = "/vol/archive";
subvolumes = {
"/archive/media" = {
mountOptions = [
"compress=zstd"
];
};
"/archive/backups" = {
mountOptions = [
"compress=zstd"
];
};
};
};
};
};
};
};
# ensure /home is mounted before home directories are created
fileSystems."/home".neededForBoot = true;
| 17:26:54 |
@brian:bmcgee.ie | I do not confess to understanding the why, just that my VM is now working as expected | 17:27:25 |
@brian:bmcgee.ie | This is what it looked like before
mdadm = {
raid0 = {
type = "mdadm";
level = 0;
content = {
type = "luks";
name = "crypted-root";
settings = {
allowDiscards = true;
};
content = {
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
"/root" = {
mountpoint = "/";
};
"/home" = {
mountpoint = "/home";
mountOptions = [
"compress=zstd"
];
};
"/nix" = {
mountpoint = "/nix";
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/var/log" = {
mountpoint = "/var/log";
mountOptions = [
"compress=zstd"
"nodatacow"
];
};
};
};
};
};
raid5 = {
type = "mdadm";
level = 5;
content = {
type = "luks";
name = "crypted-archive";
content = {
type = "btrfs";
extraArgs = [ "-f" ];
subvolumes = {
"/archive" = {
mountpoint = "/archive";
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/archive/media" = {
mountpoint = "/archive/media";
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/archive/backups" = {
mountpoint = "/archive/backups";
mountOptions = [
"compress=zstd"
"noatime"
];
};
};
};
};
};
};
};
| 17:28:27 |
@brian:bmcgee.ie | * Mic92: I adjusted my btrfs volume definitions to more closely match what Lily Foster had, mainly just adding a root mountpoint of /vol/root and removing mountpoint definitions in my subvolumes since their paths matched anyway.
Now neededForBoot seems to have the desired effect and /home is being mounted before the user activation script is trying to do anything.
mdadm = {
raid0 = {
type = "mdadm";
level = 0;
content = {
type = "luks";
name = "crypted-root";
settings = {
allowDiscards = true;
};
content = {
type = "btrfs";
mountpoint = "/vol/root";
subvolumes = {
"/root" = {
mountpoint = "/";
};
"/home" = {
mountOptions = [
"compress=zstd"
];
};
"/nix" = {
mountOptions = [
"compress=zstd"
"noatime"
];
};
"/var/log" = {
mountOptions = [
"compress=zstd"
"nodatacow"
];
};
};
};
};
};
raid5 = {
type = "mdadm";
level = 5;
content = {
type = "luks";
name = "crypted-archive";
content = {
type = "btrfs";
mountpoint = "/vol/archive";
subvolumes = {
"/archive/media" = {
mountOptions = [
"compress=zstd"
];
};
"/archive/backups" = {
mountOptions = [
"compress=zstd"
];
};
};
};
};
};
};
};
# ensure /home is mounted before home directories are created
fileSystems."/home".neededForBoot = true;
| 17:28:48 |
| pinpox changed their display name from pinpox [DECT: 7170] to pinpox. | 18:20:02 |
| jopejoe1 changed their display name from jopejoe1 [4094] to jopejoe1. | 23:29:38 |
| 2 Jan 2025 |
@brian:bmcgee.ie | yeah, so I missed the eval warnings. Turns out it just wasn't mounting things which is why it appeared to 'work'. Back to the drawing board. | 14:00:50 |
@brian:bmcgee.ie | This was a bit of a pain in the arse to figure out https://github.com/nix-community/disko/issues/192#issuecomment-2567944604 | 16:17:30 |
| x10an14 joined the room. | 19:54:26 |