| 6 May 2026 |
BerriJ | I wonder why all the luks examples set allowDiscards to true. Does someone here know that? | 13:53:58 |
magic_rb | Its good for ssds, whether its the default, dont know | 14:05:54 |
BerriJ | Hm okay, thanks :) | 14:08:34 |
magic_rb | Discard is another name for TRIM, which is telling the SSD "hey im not using these blocks, feel free to GC them". Modern SSDs have a GC on them and use "trimmed" blocks to control fragmentation yada yada | 14:09:47 |
| so_halt joined the room. | 19:50:06 |
so_halt | I'm trying to do a fresh install using disko-install, but it fails like
Creating new GPT entries in memory.
The operation has completed successfully.
+ sgdisk --align-end --new=1:1MiB:1GiB --partition-guid=1:R --change-name=1:disk-nvme0n1-ESP --typecode=1:8300 --attributes=1:=:0 /dev/nvme0n1
The operation has completed successfully.
+ partprobe /dev/nvme0n1
+ udevadm trigger --subsystem-match=block
+ udevadm settle --timeout 120
+ sgdisk --align-end --new=2:1GiB:-8G --partition-guid=2:R --change-name=2:disk-nvme0n1-luks --typecode=2:8300 --attributes=2:=:0 /dev/nvme0n1
Could not create partition 2 from 2097152 to 959995903
Unable to set partition 2's name to 'disk-nvme0n1-luks'!
Could not change partition 2's type code to 8300!
Error encountered; not saving changes.
+ sgdisk --partition-guid=2:R --change-name=2:disk-nvme0n1-luks --typecode=2:8300 --attributes=2:=:0 /dev/nvme0n1
Unable to set partition 2's name to 'disk-nvme0n1-luks'!
Could not change partition 2's type code to 8300!
Error encountered; not saving changes.
+ rm -rf /tmp/tmp.aBFS0bfxTS
Copying store paths
[#################################################################>-----------------------------------------------------------]
436.34 MiB / 836.22 MiB | 52% | 1.58 GiB/s | 00:00:00 remaining 19:48:17 [ERROR] Error copying: "/nix/store/mklp59jc4s3b8wy20jsvkrm55bc44dkp-nix-2.33.4-doc/share/doc/nix/manual/toc.js" -> "/mnt/disko-install-root/nix/store/mklp59jc4s3b8wy20jsvkrm55bc44dkp-nix-2.33.4-doc/share/doc/nix/manual/toc.js"; aborting.
19:48:17 [ERROR] Error copying: "/nix/store/mklp59jc4s3b8wy20jsvkrm55bc44dkp-nix-2.33.4-doc/share/doc/nix/manual/toc.html" -> "/mnt/disko-install-root/nix/store/mklp59jc4s3b8wy20jsvkrm55bc44dkp-nix-2.33.4-doc/share/doc/nix/manual/toc.html"; aborting.
19:48:17 [ERROR] Received error: Error during copy: Read-only file system (os error 30)
19:48:17 [ERROR] Error copying: "/nix/store/mklp59jc4s3b8wy20jsvkrm55bc44dkp-nix-2.33.4-doc/share/doc/nix/manual/tomorrow-night.css" -> "/mnt/disko-install-root/nix/store/mklp59jc4s3b8wy20jsvkrm55bc44dkp-nix-2.33.4-doc/share/doc/nix/manual/tomorrow-nightError: Error during copy: Read-only file system (os error 30)
Loading nix database
installing the boot loader...
chroot: failed to run command ‘/nix/var/nix/profiles/system/activate’: No such file or directory
chroot: failed to run command ‘/nix/var/nix/profiles/system/sw/bin/bash’: No such file or directory
disko-install failed
rmdir: failed to remove '/mnt/disko-install-root': Directory not empty
Any pointers what I might be doing wrong?
| 19:51:54 |
so_halt | This is my disk-config
{
disko.devices = {
disk = {
nvme0n1 = {
device = "/dev/nvme0n1";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
start = "1MiB";
end = "1GiB";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
luks = {
start = "1GiB";
end = "-8G";
content = {
type = "luks";
name = "crypted";
content = {
type = "zfs";
pool = "zroot";
};
};
};
swap = {
start = "-8G";
end = "100%";
content = {
type = "swap";
randomEncryption = true;
};
};
};
};
};
};
zpool = {
zroot = {
type = "zpool";
rootFsOptions = {
"com.sun:auto-snapshot" = "false";
};
mountpoint = "/";
postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot@blank$' || zfs snapshot zroot@blank";
datasets = {
persist = {
type = "zfs_fs";
mountpoint = "/persist";
};
nixstore = {
type = "zfs_fs";
mountpoint = "/nix";
};
home = {
type = "zfs_fs";
mountpoint = "/home";
options."com.sun:auto-snapshot" = "true";
};
};
};
};
};
}
| 19:52:38 |
so_halt | And I'm invoking disko-install like so: nix run --extra-experimental-features flakes --extra-experimental-features nix-command 'github:nix-community/disko/latest#disko-install' -- --write-efi-boot-entries --flake github:my/repo#my-host --disk nvme0n1 /dev/nvme0n1 | 19:54:01 |
so_halt | (I'm running this on the machine that I want to install the system to, booted from a usb stick with an installer iso) | 20:08:11 |
so_halt | Looks like the issue is with the start and end config of the partitions. Using size = 1G; for ESP and size = 100%; for LUKS works. | 20:44:21 |
magic_rb | There needs go be a gap between the paritions i think. sgdisk will do it for you if you do 100% but not if you do it manually | 21:06:07 |
| 7 May 2026 |
| @jykrwn_bot:matrix.org joined the room. | 09:12:39 |
| NixOS Moderation Bot banned @jykrwn_bot:matrix.org (disagreement). | 09:12:41 |
| 8 May 2026 |
| jopejoe1 [4094] changed their display name from jopejoe1 (4094@epvpn) to jopejoe1. | 08:45:49 |
| hxr404 ✨ [it/she] left the room. | 09:21:19 |
Crony Akatsuki (balkan/slav) | magic_rb: willing to help me setup zfs on a external hdd, main usecase just for saving rom files and playing them, maybe encrypted backups also | 14:23:12 |
magic_rb | zfs is a bit clunky with imports, exports | 14:23:40 |
magic_rb | what i would do is do LUKS below ZFS | 14:23:50 |
Crony Akatsuki (balkan/slav) | I wouldn't be encrypting the drive itself, have no need for that | 14:24:12 |
magic_rb | ah | 14:24:21 |
magic_rb | spinning rust? | 14:24:30 |
Crony Akatsuki (balkan/slav) | yea, hdd | 14:24:42 |
magic_rb | zpool."cyanocitta-zpool" = {
type = "zpool";
options."ashift" = "12";
rootFsOptions = {
"xattr" = "on";
"recordsize" = "128K";
"compression" = "zstd-2";
"atime" = "off";
"dnodesize" = "auto";
"mountpoint" = "none";
};
datasets."ds1" = {
type = "zfs_fs";
options.mountpoint = "none";
mountpoint = null;
};
thats from my newest laptop, xattr = on is i think the default by now, so is dnodesize = auto, but im not a 100% sure | 14:26:22 |
Crony Akatsuki (balkan/slav) | tnx | 14:29:12 |
| 12 May 2026 |
| Richard Tichý joined the room. | 11:34:51 |
| 13 May 2026 |
| snowflake joined the room. | 12:26:53 |
| 14 May 2026 |
| Pol changed their display name from Pol to Pol (out, touching grass). | 07:39:05 |
| Pol changed their display name from Pol (out, touching grass) to Pol. | 16:33:39 |
| haz joined the room. | 17:04:10 |
| 25 Apr 2024 |
| David Mell (zraexy) joined the room. | 23:38:25 |