1312 Commits
Author SHA1 Message Date
Michael Hoang de57087392 release: v1.13.0 latest v1.13.0 2026-01-20 14:56:26 +00:00
Michael Hoang ea8eec3908 treefmt: stop using old attr 2026-01-20 14:28:37 +00:00
Michael Hoang 6fcb8c602b scripts: avoid running create-release directly 2026-01-20 13:41:04 +00:00
nothingnesses e0bbbb8886 tests/bcachefs: unlock before running show-super 2026-01-20 12:57:44 +00:00
Michael Hoang 8d2eb19e35 tests/bcachefs: fix invalid syntax warning 2026-01-20 12:57:44 +00:00
nothingnesses 28254e49c4 tests/bcachefs: switch to linuxPackages_latest
The `linuxPackages_testing` kernel (currently 6.19-rc1) has a broken `bcachefs`
module in the current nixpkgs revision.

Switching to `linuxPackages_latest` (currently 6.18.2) resolves this as it uses
a stable kernel where bcachefs is supported and working.
2026-01-20 12:57:44 +00:00
Michael Hoang ec90d55ff3 lib: pass stdenv to qemu-common not pkgs 2026-01-20 12:57:44 +00:00
Michael Hoang 5ae05d98d2 treewide: reformat 2026-01-20 12:57:44 +00:00
github-actions[bot] 0062b1a1de flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/a8d610af3f1a5fb71e23e08434d8d61a466fc942?narHash=sha256-v5afmLjn/uyD9EQuPBn7nZuaZVV9r%2BJerayK/4wvdWA%3D' (2025-11-20)
  → 'github:NixOS/nixpkgs/3327b113f2ef698d380df83fbccefad7e83d7769?narHash=sha256-MJwOjrIISfOpdI9x4C%2B5WFQXvHtOuj5mqLZ4TMEtk1M%3D' (2026-01-17)
2026-01-20 12:57:44 +00:00
lennart 558e84658d example: add comments as warning about legacy table type
Just did the mistake to copy and paste one legacy table type example.
Ran into the warning and was a bit sad.

Adding these comments while referring to the documentation could help
some undercaffeinated disko users like me.
2026-01-18 09:19:06 +00:00
Jörg Thalheim 916506443e make-disk-image: quote $rootMountPoint for consistency
All other usages of $rootMountPoint in this file are quoted, so apply
the same style here for readability.
2025-12-19 13:25:02 +00:00
Jörg Thalheim 6b172212b6 disko-install: resolve symlinks in mount point path
Nix refuses to operate when the store path or its parent directories
contain symlinks. On some systems /mnt can be a symlink, causing
disko-install to fail with:

  error: the path '"/mnt"' is a symlink; this is not allowed for the
  Nix store and its parent directories

Use realpath to resolve symlinks before passing the mount point to
nix-store and nixos-install commands.
2025-12-19 13:25:02 +00:00
qbisi 7194cfe5b7 downgrade the priority of kernelPackages set from imageBuilder 2025-12-15 10:34:05 +00:00
nothingnesses be1a6b8a05 bcachefs: fix subvolume mounting 2025-12-14 04:58:58 +00:00
nothingnesses 4250f1ce5f tests/disko-install: fix drvPath missing from dependencies 2025-12-14 04:58:58 +00:00
Michael Hoang f2bba803a7 treewide: reformat 2025-12-14 04:58:58 +00:00
nothingnesses 386f070c74 flake: bump Nixpkgs 2025-12-14 04:58:58 +00:00
fidgetingbits d64e5cdca3 feat(mdadm): add test for mdadm with extraArgs 2025-12-10 00:31:19 +00:00
fidgetingbits e65362ceef feat(mdadm): add extraArgs option 2025-12-10 00:31:19 +00:00
fidgetingbits d307bf82e1 docs: typo in testing 2025-12-10 00:31:19 +00:00
Jörg Thalheim 8e68aa819d disko-images: add copyNixStoreThreads option for configurable parallelism
Allow users to override the automatic thread count detection for nix
store copying. The default "auto" behavior remains unchanged (min of
nproc and 8), but users can now specify a fixed thread count for
environments where the automatic detection isn't optimal.
2025-12-09 08:59:57 +00:00
Jörg Thalheim 10cdd63203 disko-images: switch back from xcp to cp for improved stability 2025-12-09 08:59:57 +00:00
dependabot[bot] 5a88a6eceb build(deps): bump DeterminateSystems/update-flake-lock from 27 to 28
Bumps [DeterminateSystems/update-flake-lock](https://github.com/determinatesystems/update-flake-lock) from 27 to 28.
- [Release notes](https://github.com/determinatesystems/update-flake-lock/releases)
- [Commits](https://github.com/determinatesystems/update-flake-lock/compare/v27...v28)

---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-version: '28'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 22:16:57 +00:00
Wolfgang Walther 2055a08fd0 flake: export lib with references to nixpkgs input
This previously pointed at `<nixpkgs/...>`, which might be anything. It
caused this error for me, when I tried to use `lib.makeDiskoTest`
downstream:

  error: cannot look up '<nixpkgs/nixos/tests/make-test-python.nix>' in
  pure evaluation mode (use '--impure' to override)
2025-11-28 17:28:08 +00:00
crasm aecba248f9 Correct npins import example 2025-11-25 22:47:59 +00:00
dependabot[bot] ec8eabe00c build(deps): bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 20:46:49 +00:00
Jörg Thalheim e86a890795 stop using pkgs.path
pkgs.path is an expensive copy operation that slow down evaluation by a
lot.
2025-11-20 15:07:44 +00:00
Bert Proesmans a799338d17 fix(luks); Passthrough filesystems of content for unmounting 2025-11-20 14:10:46 +00:00
Bert Proesmans fa7a23d0ef fix(nodev); Set device default to fstype config
The value for device is copied into the SOURCE column of findmnt.
By default this is "none". The mount and unmount scripts
branch on SOURCE=fsType specifically, and the existence of "none"
in the SOURCE column causes wrong branches to be executed.
For a list of special filesystems, the default value "none"
is replaced by the value for fsType.
2025-11-20 14:10:46 +00:00
Bert Proesmans d9e12a2c7f fix(zpool); Ignore shadow-mount error during recreate of zpool at existing non-empty path 2025-11-20 14:10:46 +00:00
Bert Proesmans d8a3e367bd Fix(mdadm); unmount not passing through filesystems set from content 2025-11-20 14:10:46 +00:00
Bert Proesmans 436fd911cf Fix(zfs_fs); Mount/Unmount with encryption
- Fix typo against full dataset path argument
- Make unmount with encryption keys idempotent
2025-11-20 14:10:46 +00:00
Jörg Thalheim a19c2b6d3a tests: use nixpkgs qemu-common for proper machine type configuration
QEMU on aarch64 requires an explicit machine type (e.g., '-machine virt'),
unlike x86_64 which has a default. Previously, the test script hardcoded
'qemu-kvm' without machine type arguments, causing aarch64 tests to fail
with "No machine specified, and there is no default".

By importing and using nixpkgs' qemu-common.nix library, we reuse the
existing platform-specific QEMU configuration logic.
2025-11-20 13:42:11 +00:00
Jörg Thalheim af087d076d disko: drop more eval warnings 2025-11-04 17:23:16 +00:00
Jörg Thalheim 3f65d72ca6 disko/tests: silence mdadm tests 2025-11-04 17:23:16 +00:00
Jörg Thalheim d377b56993 disko-install: resolve flake store path before using getFlake
otherwise operate on a path rather than the git flake
2025-11-04 17:23:16 +00:00
Francesco Zanini 6f4cf5abbe Set kernelPackages in native builder
In some cases, the kernel is not defined for cross-arch builds.
2025-10-31 08:29:56 +00:00
Edwin Mackenzie-Owen fec5efebfc gpt: trigger udev after marking hybrid mbr partitions as bootable
Even though we don't depend on the MBR bootable flag in the following
steps, not running udevadm trigger and waiting for settle can cause
/dev/disk/by-partlabel entries to be absent when formatting filesystems
immediately after modifying the partition table.
2025-10-31 08:24:29 +00:00
Gabriel Nützi 3a9450b26e fix: forward arguments to vmWithDisko 2025-10-17 11:39:50 +00:00
Michael Hoang 67ff9807dd lib: fix mdadm warning when using config.system.build.installTest 2025-09-19 13:18:24 +00:00
Michael Hoang ddef55ae5f Revert "flake.lock: Update"
This reverts commit 4f554162ff.
2025-09-19 13:07:01 +00:00
github-actions[bot] 4f554162ff flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/dab3a6e781554f965bde3def0aa2fda4eb8f1708?narHash=sha256-lFNVsu/mHLq3q11MuGkMhUUoSXEdQjCHvpReaGP1S2k%3D' (2025-07-15)
  → 'github:NixOS/nixpkgs/08b8f92ac6354983f5382124fef6006cade4a1c1?narHash=sha256-TjqVmbpoCqWywY9xIZLTf6ANFvDCXdctCjoYuYPYdMI%3D' (2025-09-16)
2025-09-18 01:47:17 +00:00
Anomalocaridid 146f45bee0 feat: add flake-parts module 2025-09-10 12:44:52 +00:00
Yifei Sun c8a0e78d86 examples: gpt partition attributes
cherry-picked from https://github.com/nvmd/disko/commit/9dc58d4d49c9f74623a06e2fc20cdfd8bb3cbe8b

usage example:

- set attribute: https://github.com/nvmd/nixos-raspberrypi-demo/blob/2847963e7555fc412c1d0f37bb48c761e78f350d/disko-nvme-zfs.nix#L9L11
- check: https://github.com/nvmd/nixos-raspberrypi-demo/blob/2847963e7555fc412c1d0f37bb48c761e78f350d/flake.nix#L154L160
2025-09-07 14:37:19 +00:00
Sergey Kazenyuk 31fe7eda26 gpt: add partition attributes 2025-09-07 14:37:19 +00:00
Jörg Thalheim a5c4f2ab72 make-disk-image: use modules output of a kernel if present
This is a hotfix that could be reverted if we get:

https://github.com/NixOS/nixpkgs/pull/439178

in.
2025-09-01 13:33:49 +00:00
Jörg Thalheim bafad29f89 make-disk-image: also use xcp 2025-08-25 09:53:42 +00:00
Jörg Thalheim 49c1bc1b34 disko-install: switch to xcp 2025-08-25 09:53:42 +00:00
lassulus 4073ff2f48 types.luks: fix password check 2025-08-18 12:26:12 +00:00
diffy f64ab1525b docs: add recursive method for fetching flake input out paths
The previous example would not work for flakes that have inputs with inputs of their own, leading to installation failures when attempting to install without internet access
2025-08-18 06:45:23 +00:00