Commit Graph

27 Commits

Author SHA1 Message Date
Jörg Thalheim
72818e54ec move disko-install into disko package 2024-03-09 07:05:35 +00:00
Maximilian Bosch
007625baaa
Fix manual build
The option `disko.devices.lvm_vg.<name>.lvs.<name>.priority` depends on
a different option that's unset by default breaking the manual build
like this:

    … while evaluating the attribute 'optionalValue.value'

     at /nix/store/lwyjz70qh12nq6cb7fixl85vryzxqm3c-source/lib/modules.nix:856:5:

      855|
      856|     optionalValue =
         |     ^
      857|       if isDefined then { value = mergedValue; }

    … while evaluating a branch condition

     at /nix/store/lwyjz70qh12nq6cb7fixl85vryzxqm3c-source/lib/modules.nix:857:7:

      856|     optionalValue =
      857|       if isDefined then { value = mergedValue; }
         |       ^
      858|       else {};

    (stack trace truncated; use '--show-trace' to show the full trace)

    error: The option `disko.devices.lvm_vg.<name>.lvs.<name>.size' is used but not defined.

This is especially noticeable when using `documentation.nixos.includeAllModules` locally.

Fixed the issue itself by adding a `defaultText` and added the
`disko-doc` job to the `checks` output so that CI hopefully catches this
from now on.
2024-03-05 17:35:13 +01:00
Jörg Thalheim
bde7dd352c add disko-install command
disko-install combines disko and nixos-install into a single command.

Example usage:

  sudo ./disko-install --flake /someflake#eva --disk sda /dev/zvol/zroot/test
2024-03-01 09:48:08 +00:00
lassulus
2bf4fc166b flake: deprecate .lib.lib 2023-09-26 14:00:14 +00:00
Jörg Thalheim
1be23d771f replace statix with deadnix
statix does sometimes weird stuff while deadnix is even better at finding deadcode
2023-09-17 04:43:25 +00:00
Jörg Thalheim
4ec801c317 add deno to formatters 2023-09-17 04:43:25 +00:00
Jörg Thalheim
c4f2de908d fix evaluation of checks on non-x86_64-linux
run nix fmt
2023-09-02 18:37:01 +02:00
Jörg Thalheim
3ba5bb2de6 disable haskell-based builds on riscv64
fixes https://github.com/nix-community/disko/issues/321
2023-08-13 17:41:12 +00:00
Jörg Thalheim
1cd619f26f stop vendoring bcachefs
the bcachefs linux fork in nixpkgs is in better shape these days
2023-07-05 09:48:02 +02:00
zimbatm
087ba202e8 flake: expose the module as nixosModules.default
If there is only one module that is getting exported, the convention is
to use that "default" value as the name.
2023-06-22 12:59:11 +02:00
0x4A6F
a4780abc0b
riscv64-linux: add riscv64-linux to supported systems 2023-04-28 10:51:08 +02:00
Chris Scutcher
a393654c3b
style: Define formatter in flake to allow nix fmt
Noticed this was an option to codify the agreed style/pattern
auto-normalise discussed in [#143]

[#143]: https://github.com/nix-community/disko/pull/143
2023-02-07 15:51:33 +00:00
Chris Scutcher
08435eec4b
style: Apply nixpkgs-fmt and fix
Apply standard formatting and some statix conventions using;

```sh
nixpkgs-fmt **.nix && statix fix .
```

With the intent of making contribution a bit easier and reducing mental
load in hand formatting (in the same vein as [black]).

[black]: https://github.com/psf/black#the-uncompromising-code-formatter
2023-02-06 14:24:34 +00:00
Jörg Thalheim
65a8e3f9a0 move linuxPackages_bcachefs to legacyPackages 2023-01-23 15:34:35 +01:00
Jörg Thalheim
eca1957835 vendorize bcachefs kernel 2023-01-23 10:56:51 +01:00
Jörg Thalheim
36ef99fca6 add disko-doc 2023-01-15 21:34:52 +01:00
Jörg Thalheim
a6a7ccbc9b add shellcheck to flake instead 2023-01-10 08:05:45 +01:00
Jörg Thalheim
236e08da9c pin nixpkgs again 2022-12-23 17:25:47 +01:00
Jörg Thalheim
9e2c9d06f5 expose disko for non x86 2022-12-09 14:34:12 +01:00
lassulus
0d922a482d flake: fix style 2022-12-01 20:10:21 +01:00
David Arnold
a023d391a0 feat: reuse the pre-installed channel 2022-11-09 12:28:18 +01:00
David Arnold
fa17cfe878 feat: trim the build to the minimum
on a slow finicky target machine, no time to pull gcc
2022-11-09 12:23:34 +01:00
David Arnold
2a59af78a8 fix: add package build and fix disko 2022-11-09 12:21:24 +01:00
lassulus
4184cbcd03 add module 2022-10-29 13:23:31 +02:00
lassulus
9f7f23abdb add nixos tests for disko.config, extend/fix existing tests 2022-10-02 16:41:02 +02:00
lassulus
0ffaac7913 run all tests on ci 2022-08-25 23:31:05 +02:00
Jörg Thalheim
6b3d6452eb add flake 2022-08-17 14:53:51 +02:00