Commit graph

923 commits

Author SHA1 Message Date
Lassulus
a050895e4e
Merge pull request #477 from nix-community/phaer-patch-1
Update README.md
2023-12-21 13:42:08 +01:00
Paul Haerle
e526d4e653
Update README.md
...and try to make it a bit clearer that the attribute name in disko.devices.disk is quite arbitrary to prevent confusion as in #473
2023-12-21 11:36:17 +00:00
github-actions[bot]
db6cbcadfe flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/aa9d4729cbc99dabacb50e3994dcefb3ea0f7447' (2023-12-14)
  → 'github:NixOS/nixpkgs/7c33cd6bf01cf09f77bfdf6741cddfffa2cd5640' (2023-12-20)
2023-12-21 01:20:50 +00:00
Paul Haerle
3ca75072ad Update README.md
make simple disko config even simpler
2023-12-20 23:54:08 +01:00
Lassulus
b4104fcaea
Merge pull request #474 from Enzime/fix/zfs-root-dataset
zpool: fix default dataset getting shadowed
2023-12-20 10:06:54 +01:00
Michael Hoang
9f9ff673d1 zpool: fix default dataset getting shadowed
If the zpool's root dataset is not the rootfs and gets mounted on
creation, the actual rootfs will get mounted later and shadow the
current mountpoint.

Running `zfs unmount` is the easiest way to unmount the zpool's root
dataset on creation without messing up the value of the `mountpoint`
setting.
2023-12-19 23:49:30 +11:00
Michael Hoang
4346558fd4 tests: add test for running ZFS as not the rootfs 2023-12-19 23:49:20 +11:00
github-actions[bot]
e74526b334 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/e97b3e4186bcadf0ef1b6be22b8558eab1cdeb5d' (2023-12-11)
  → 'github:NixOS/nixpkgs/aa9d4729cbc99dabacb50e3994dcefb3ea0f7447' (2023-12-14)
2023-12-18 01:23:03 +00:00
Jörg Thalheim
98ab911097 bcachefs: set testing kernel for bcachefs
still waiting for the slow upstream review...
2023-12-14 16:02:39 +00:00
lassulus
e7ed2e9239 tests bcachefs: use linux_testing 2023-12-14 16:02:39 +00:00
lassulus
41d3be72d7 tests *: don't test for zfs in /dev 2023-12-14 16:02:39 +00:00
github-actions[bot]
5cd00ce3fd flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/51d906d2341c9e866e48c2efcaac0f2d70bfd43e' (2023-10-21)
  → 'github:NixOS/nixpkgs/e97b3e4186bcadf0ef1b6be22b8558eab1cdeb5d' (2023-12-11)
2023-12-14 16:02:39 +00:00
matthewcroughan
4c4634bbcb make-disk-image: allow extra dependencies to be passed into image builder 2023-12-14 14:24:37 +00:00
matthewcroughan
bb75ad0b1d make-disk-image: inherit kernel from nixosConfiguration 2023-12-14 14:05:13 +00:00
matthewcroughan
d5cf2e3d61 lib/types/gpt.nix: default = [] -> default = {}
This must have accidentally creeped in during a refactor
2023-12-14 13:55:39 +00:00
matthewcroughan
bd8fbc3f27 make-disk-image: make memSize configurable per disk
Sometimes the VM builder can run out of memory and fail to allocate memory when installing the system toplevel
2023-12-13 15:02:45 +00:00
Ctem
169e99dc3d fix: create btrfs subvolume parent directories
Fixes #409
2023-12-13 14:58:36 +00:00
Jörg Thalheim
1144887c6f lvm: update kernel modules when creating raid 2023-12-06 23:28:45 +00:00
Jörg Thalheim
c7f594c2ab doc: add experimental flags to examples
fixes https://github.com/nix-community/disko/issues/459
2023-12-06 22:51:30 +00:00
Lassulus
f84c368490
Merge pull request #458 from nix-community/dependabot/github_actions/cachix/install-nix-action-24
build(deps): bump cachix/install-nix-action from 23 to 24
2023-12-05 12:33:11 +01:00
dependabot[bot]
8e4ce6e60e
build(deps): bump cachix/install-nix-action from 23 to 24
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 23 to 24.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v23...v24)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 19:46:01 +00:00
Jörg Thalheim
3cb78c93e6 swap: don't activate random encrypted swap files
This requires more code and is not implemented just now.
2023-11-25 15:47:29 +00:00
Andrew Marshall
2d7d77878c Implement preMountHook & postMountHook
These options previously existed but had no effect. Now they are
implemented. They only affect mount during disko’s filesystem creation,
not during any later mounts.

Adding test case to existing “complex” example and test mostly because
couldn’t think of any better place to put it.
2023-11-12 09:36:50 +00:00
lassulus
01ec6024d6 example lukgs-btrfs-subvolumes: fix passwordFile location 2023-11-12 09:21:13 +00:00
Jörg Thalheim
89fd5b51f0 docs/reference: fixup headings 2023-11-11 20:23:15 +00:00
Jörg Thalheim
39f8a6adc4 docs: improve make-disk-image docs using my text calculator
Co-authored-by: Janik <80165193+Janik-Haag@users.noreply.github.com>
2023-11-11 20:23:15 +00:00
Janik H
8759b5bf0a docs: add make-disk-image 2023-11-11 20:23:15 +00:00
Janik H
4fec5f515c make-disk-image: make generating the image more efficent 2023-11-11 16:14:15 +01:00
Janik H
b6fb19891f make-disk-image: add --build-memory 2023-11-11 16:14:15 +01:00
Janik H
da38eb67aa make-disk-image: improve --help 2023-11-11 16:14:15 +01:00
Aleksander Heintz
72bc152626 add btrfs swap support 2023-11-08 22:36:40 +00:00
Felix Buehler
548962c50b luks: use allowDiscards option 2023-11-04 12:09:41 +00:00
lassulus
944d338d24 quickstart: remove deprecated disk handling 2023-10-27 16:02:07 +00:00
Jörg Thalheim
8c5d52db56 publish to flakestry 2023-10-24 15:55:28 +02:00
github-actions[bot]
a3283f0e5c flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/12bdeb01ff9e2d3917e6a44037ed7df6e6c3df9d' (2023-10-15)
  → 'github:NixOS/nixpkgs/51d906d2341c9e866e48c2efcaac0f2d70bfd43e' (2023-10-21)
2023-10-23 01:17:49 +00:00
williamvds
4122a18340 Fix read shellcheck warning SC2162
Use `-r` to avoid mangling backslashes, use `IFS=` to not discard leading and
trailing whitespace.
2023-10-22 17:30:12 +00:00
Carl Dong
196a5deeea disk-deactivate: Use bash and pipefail 2023-10-22 17:26:03 +00:00
Carl Dong
94af39d27e disk-deactivate: Remove MBR bootstrap code for disk 2023-10-22 17:26:03 +00:00
Stefan Doe
c24c3a9029 Update quickstart.md 2023-10-19 14:26:31 +01:00
github-actions[bot]
325e1f7f2e flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/01441e14af5e29c9d27ace398e6dd0b293e25a54' (2023-10-11)
  → 'github:NixOS/nixpkgs/12bdeb01ff9e2d3917e6a44037ed7df6e6c3df9d' (2023-10-15)
2023-10-16 01:19:44 +00:00
Maximilian Bosch
6ad5c9c17c module: use defaultText to not depend on the configuration when building the manual
I do build my workstation with `documentation.nixos.includeAllModules`
to also have private modules and external stuff in my local options'
reference.

Not sure why exactly this breaks with

    error: attribute 'loader' missing

    at /nix/store/h6qicay9fgggx9nf6apdl6zkdpdp28xx-source/module.nix:46:19:

        45|         type = lib.types.bool;
        46|         default = config.boot.loader.systemd-boot.enable || config.boot.loader.grub.efiSupport;
          |                   ^
        47|       };

but using defaultText is the usual fix that also works here.
2023-10-13 20:57:40 +00:00
Maximilian Bosch
e738cac18e luks: fix interactive mount
Before that it was only attempted to unlock luks with the key from
`$password`, however that variable didn't exist before.
2023-10-13 20:52:36 +00:00
github-actions[bot]
3c41ae36ff flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5aabb5780a11c500981993d49ee93cfa6df9307b' (2023-10-08)
  → 'github:NixOS/nixpkgs/01441e14af5e29c9d27ace398e6dd0b293e25a54' (2023-10-11)
2023-10-12 01:19:34 +00:00
github-actions[bot]
32ce057c18 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/7131f3c223a2d799568e4b278380cd9dac2b8579' (2023-10-04)
  → 'github:NixOS/nixpkgs/5aabb5780a11c500981993d49ee93cfa6df9307b' (2023-10-08)
2023-10-09 01:21:33 +00:00
github-actions[bot]
cde886a1c9 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/0396d3b0fb7f62ddc79a506ad3e6124f01d2ed0a' (2023-10-01)
  → 'github:NixOS/nixpkgs/7131f3c223a2d799568e4b278380cd9dac2b8579' (2023-10-04)
2023-10-05 01:22:03 +00:00
github-actions[bot]
646ee25c25 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/f3dab3509afca932f3f4fd0908957709bb1c1f57' (2023-09-27)
  → 'github:NixOS/nixpkgs/0396d3b0fb7f62ddc79a506ad3e6124f01d2ed0a' (2023-10-01)
2023-10-02 17:12:32 +00:00
lassulus
0d39ae5a5b types luks: add password prompt 2023-10-02 16:57:23 +00:00
Kai Norman Clasen
f02d818e55
Fix example in README.md (#410)
* Fix example in README.md

The minimal example was missing the wrapping `disko.devices` attributes which resulted in the following error message:

```
error: attribute 'disko' missing

       at /nix/store/1lvj5ry4y5qyis40qcch1csf8h86z8bk-disko/share/disko/default.nix:10:49:

            9|       # _file = toString input;
           10|       imports = lib.singleton { disko.devices = cfg.disko.devices; };
             |                                                 ^
           11|       options = {
       Did you mean disk?
```

* Increase ESP size

From 100M to 500M

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>

---------

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2023-10-02 17:52:49 +01:00
github-actions[bot]
19b6232466 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/e12483116b3b51a185a33a272bf351e357ba9a99' (2023-09-21)
  → 'github:NixOS/nixpkgs/f3dab3509afca932f3f4fd0908957709bb1c1f57' (2023-09-27)
2023-09-28 01:21:32 +00:00
Jörg Thalheim
78fba3983d make boot large enough in tests
100M is not enough and I see people just copying examples without putting in any extra thoughts
https://github.com/TUM-DSE/doctor-cluster-config/pull/368
2023-09-27 06:19:07 +00:00