Commit graph

1294 commits

Author SHA1 Message Date
Jörg Thalheim
ba02587fcd disko-install: fix serial kernel configuration 2025-11-20 16:21:01 +01:00
Jörg Thalheim
c65f1300fd bcachefs: try to fix test 2025-11-20 16:20:47 +01:00
Jörg Thalheim
e27f5880bf nixos test: fix python syntax warnings 2025-11-20 16:20:47 +01:00
Jörg Thalheim
8cc65a14eb diskoTest: enable bcachefs as filesystem 2025-11-20 16:20:47 +01:00
Jörg Thalheim
979ad8fe9c disko-install: use nixosTest from testers 2025-11-20 16:20:47 +01:00
oott123
81e790ca3c make-disk-image: auto-detect bcachefs kernel module like zfs
Automatically include the bcachefs kernel module when bcachefs is detected in
extraRootModules or boot.supportedFilesystems.

This follows the same pattern as ZFS.

Fixes #1151
2025-11-20 16:20:47 +01:00
Jörg Thalheim
0be0ac760b run nixfmt after update 2025-11-20 16:20:47 +01:00
github-actions[bot]
79a83ed4a9 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/6f374686605df381de8541c072038472a5ea2e2d?narHash=sha256-AJHrsT7VoeQzErpBRlLJM1SODcaayp0joAoEA35yiwM%3D' (2025-11-18)
2025-11-20 16:20:46 +01: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
github-actions[bot]
7f1857b315 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/08fcb0dcb59df0344652b38ea6326a2d8271baff?narHash=sha256-HXIQzULIG/MEUW2Q/Ss47oE3QrjxvpUX7gUl4Xp6lnc%3D' (2025-06-08)
  → 'github:NixOS/nixpkgs/41da1e3ea8e23e094e5e3eeb1e6b830468a7399e?narHash=sha256-jp0D4vzBcRKwNZwfY4BcWHemLGUs4JrS3X9w5k/JYDA%3D' (2025-06-14)
2025-06-16 02:13:22 +00:00
github-actions[bot]
dfa4d1b9c3 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/e4b09e47ace7d87de083786b404bf232eb6c89d8?narHash=sha256-RlTsJUvvr8ErjPBsiwrGbbHYW8XbB/oek0Gi78XdWKg%3D' (2025-06-02)
  → 'github:NixOS/nixpkgs/08fcb0dcb59df0344652b38ea6326a2d8271baff?narHash=sha256-HXIQzULIG/MEUW2Q/Ss47oE3QrjxvpUX7gUl4Xp6lnc%3D' (2025-06-08)
2025-06-09 02:31:54 +00:00
Jörg Thalheim
17d08c65c2 CONTRIBUTING.md: add documentation on how to run tests 2025-06-06 09:05:14 +00:00
Jörg Thalheim
6d06f63fc0 use fileset when building disko
this can save us some rebuilds in CI
2025-06-06 09:02:11 +00:00
Mitch Fossen
d74db625a5 remove quotes from --label creation for bcachefs
fixes device groups, for example where the disko config given looks like:

label = "fast.dev1";

after formatting, the device has a literal label of "fast.dev1" which
breaks bcachefs device groups:

echo fast > /sys/fs/bcachefs/<id>/options/foreground_target

gives the error Invalid argument, echo fast.dev1 fails as well

echo "\"fast\"" fails the same, however echo "\"fast.dev1\"" succeeds

after this, device labels and groups work as expected and any component
of the label can be used for a *_target
2025-06-05 18:16:20 +00:00
github-actions[bot]
a4f7deb49f flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5929de975bcf4c7c8d8b5ca65c8cd9ef9e44523e?narHash=sha256-BHmgfHlCJVNisJShVaEmfDIr/Ip58i/4oFGlD1iK6lk%3D' (2025-06-01)
  → 'github:NixOS/nixpkgs/e4b09e47ace7d87de083786b404bf232eb6c89d8?narHash=sha256-RlTsJUvvr8ErjPBsiwrGbbHYW8XbB/oek0Gi78XdWKg%3D' (2025-06-02)
2025-06-05 02:05:36 +00:00
github-actions[bot]
58d6e5a83f flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/bdac72d387dca7f836f6ef1fe547755fb0e9df61?narHash=sha256-UQubDNIQ/Z42R8tPCIpY%2BBOhlxO8t8ZojwC9o2FW3c8%3D' (2025-05-25)
  → 'github:NixOS/nixpkgs/5929de975bcf4c7c8d8b5ca65c8cd9ef9e44523e?narHash=sha256-BHmgfHlCJVNisJShVaEmfDIr/Ip58i/4oFGlD1iK6lk%3D' (2025-06-01)
2025-06-02 02:47:18 +00:00
github-actions[bot]
a894f2811e flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/3fcbdcfc707e0aa42c541b7743e05820472bdaec?narHash=sha256-JBXbjJ0t6T6BbVc9iPVquQI9XSXCGQJD8c8SgnUquus%3D' (2025-05-17)
  → 'github:NixOS/nixpkgs/bdac72d387dca7f836f6ef1fe547755fb0e9df61?narHash=sha256-UQubDNIQ/Z42R8tPCIpY%2BBOhlxO8t8ZojwC9o2FW3c8%3D' (2025-05-25)
2025-05-26 02:10:55 +00:00