Commit graph

1302 commits

Author SHA1 Message Date
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 9dc58d4d49

usage example:

- set attribute: 2847963e75/disko-nvme-zfs.nix (L9L11)
- check: 2847963e75/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
dependabot[bot]
8246829f2e build(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [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/v4...v5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 04:04:16 +00:00
dependabot[bot]
545aba0296 build(deps): bump DeterminateSystems/update-flake-lock from 26 to 27
---
updated-dependencies:
- dependency-name: DeterminateSystems/update-flake-lock
  dependency-version: '27'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-21 23:26:16 +00:00
Glen Huang
3db2f04765 allow subtype definitions to be broken up 2025-07-21 12:13:55 +00:00
github-actions[bot]
d5ad4485e6 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/9b008d60392981ad674e04016d25619281550a9d?narHash=sha256-mgFxAPLWw0Kq%2BC8P3dRrZrOYEQXOtKuYVlo9xvPntt8%3D' (2025-07-08)
  → 'github:NixOS/nixpkgs/dab3a6e781554f965bde3def0aa2fda4eb8f1708?narHash=sha256-lFNVsu/mHLq3q11MuGkMhUUoSXEdQjCHvpReaGP1S2k%3D' (2025-07-15)
2025-07-17 02:17:31 +00:00
dependabot[bot]
2bf3421f7f build(deps): bump DeterminateSystems/update-flake-lock from 25 to 26
Bumps [DeterminateSystems/update-flake-lock](https://github.com/determinatesystems/update-flake-lock) from 25 to 26.
- [Release notes](https://github.com/determinatesystems/update-flake-lock/releases)
- [Commits](https://github.com/determinatesystems/update-flake-lock/compare/v25...v26)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-15 01:07:58 +00:00
github-actions[bot]
79264292b7 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/ceb24d94c6feaa4e8737a8e2bd3cf71c3a7eaaa0?narHash=sha256-lIlUKVGCGsh0Q2EA7/6xRtKUZjaQ/ur8uUyY%2BMynHXQ%3D' (2025-07-06)
  → 'github:NixOS/nixpkgs/9b008d60392981ad674e04016d25619281550a9d?narHash=sha256-mgFxAPLWw0Kq%2BC8P3dRrZrOYEQXOtKuYVlo9xvPntt8%3D' (2025-07-08)
2025-07-10 02:13:20 +00:00
github-actions[bot]
16b74a1e30 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/d7bb1922f0bb3d0c990f56f9cdb767fdb20a5f22?narHash=sha256-sRLyRiC7TezRbbjGJwUFOgb2xMbSr3wQ0oJKfYlQ6s0%3D' (2025-06-25)
  → 'github:NixOS/nixpkgs/ceb24d94c6feaa4e8737a8e2bd3cf71c3a7eaaa0?narHash=sha256-lIlUKVGCGsh0Q2EA7/6xRtKUZjaQ/ur8uUyY%2BMynHXQ%3D' (2025-07-06)
2025-07-07 02:15:33 +00:00
midischwarz12
da6109c917 fix: flakes support on disko standalone cli 2025-07-04 05:43:36 +00:00
github-actions[bot]
83c4da299c flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/41da1e3ea8e23e094e5e3eeb1e6b830468a7399e?narHash=sha256-jp0D4vzBcRKwNZwfY4BcWHemLGUs4JrS3X9w5k/JYDA%3D' (2025-06-14)
  → 'github:NixOS/nixpkgs/d7bb1922f0bb3d0c990f56f9cdb767fdb20a5f22?narHash=sha256-sRLyRiC7TezRbbjGJwUFOgb2xMbSr3wQ0oJKfYlQ6s0%3D' (2025-06-25)
2025-06-26 02:10:43 +00:00
Scott Edlund
8fd2d6c750 make-disk-image: QEUM_OPTS -> QEMU_OPTS 2025-06-23 12:03:50 +00:00