switch to deno for formatting

This commit is contained in:
Jörg Thalheim 2023-09-17 10:30:59 +02:00 committed by mergify[bot]
parent 753da6063a
commit 34e1c624ec
6 changed files with 30 additions and 32 deletions

View File

@ -115,7 +115,7 @@ This software is provided free under the
--- ---
This project is supported by [Numtide](https://numtide.com/). This project is supported by [Numtide](https://numtide.com/).
 ![Untitledpng](https://codahosted.io/docs/6FCIMTRM0p/blobs/bl-sgSunaXYWX/077f3f9d7d76d6a228a937afa0658292584dedb5b852a8ca370b6c61dabb7872b7f617e603f1793928dc5410c74b3e77af21a89e435fa71a681a868d21fd1f599dd10a647dd855e14043979f1df7956f67c3260c0442e24b34662307204b83ea34de929d) ![Untitledpng](https://codahosted.io/docs/6FCIMTRM0p/blobs/bl-sgSunaXYWX/077f3f9d7d76d6a228a937afa0658292584dedb5b852a8ca370b6c61dabb7872b7f617e603f1793928dc5410c74b3e77af21a89e435fa71a681a868d21fd1f599dd10a647dd855e14043979f1df7956f67c3260c0442e24b34662307204b83ea34de929d)
We are a team of independent freelancers that love open source.  We help our We are a team of independent freelancers that love open source.  We help our
customers make their project lifecycles more efficient by: customers make their project lifecycles more efficient by:

View File

@ -14,5 +14,4 @@ Options:
use another kexec tarball to bootstrap NixOS use another kexec tarball to bootstrap NixOS
* --debug * --debug
enable debug output enable debug output
``` ```

View File

@ -46,9 +46,11 @@ below.
This command will generate a `flake.nix` file. Modify this file according to This command will generate a `flake.nix` file. Modify this file according to
your requirements. your requirements.
- **For a Minimal Setup**: - **For a Minimal Setup**:\
You can copy and paste the example flake contents available [here](https://github.com/numtide/nixos-anywhere-examples/blob/main/flake.nix). You can copy and paste the example flake contents available
This example is tailored for a virtual machine setup similar to one on [Hetzner Cloud](https://www.hetzner.com/cloud). [here](https://github.com/numtide/nixos-anywhere-examples/blob/main/flake.nix).
This example is tailored for a virtual machine setup similar to one on
[Hetzner Cloud](https://www.hetzner.com/cloud).
**Hardware-Specific Configuration**: If you're not using a virtual machine, **Hardware-Specific Configuration**: If you're not using a virtual machine,
you'll need to generate a custom hardware configuration with you'll need to generate a custom hardware configuration with
@ -70,7 +72,7 @@ below.
This creates the necessary configuration files under `/mnt/etc/nixos/`, which This creates the necessary configuration files under `/mnt/etc/nixos/`, which
you can then customize as needed. you can then customize as needed.
3. **Find SSH Key Line**: 3. **Find SSH Key Line**:\
if you cloned if you cloned
[our nixos-anywhere-example](https://github.com/numtide/nixos-anywhere-examples/blob/main/flake.nix) [our nixos-anywhere-example](https://github.com/numtide/nixos-anywhere-examples/blob/main/flake.nix)
you will also replace the SSH key like this: In your configuration, locate you will also replace the SSH key like this: In your configuration, locate

View File

@ -69,7 +69,7 @@ originate from the underlying operating system. These should be documented in
the relevant operating system manual. the relevant operating system manual.
| Id | Message | Explanation | | Id | Message | Explanation |
| --- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | -- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 1 | Failure unpacking initrd | You don't have enough RAM to hold `kexec` | | 1 | Failure unpacking initrd | You don't have enough RAM to hold `kexec` |
| 2 | Flake <flake_url> does not provide attirbute | The configuration name you specified in your flake URI is not defined as a NixOS configuration in your flake eg if your URI was mydir#myconfig, then myconfig should be included in the flake as `nixosConfigurations.myconfig` | | 2 | Flake <flake_url> does not provide attirbute | The configuration name you specified in your flake URI is not defined as a NixOS configuration in your flake eg if your URI was mydir#myconfig, then myconfig should be included in the flake as `nixosConfigurations.myconfig` |
| 3 | Please specify the name of the NixOS configuration to be installed, as a URI fragment in the flake-uri. | As for error #2 | | 3 | Please specify the name of the NixOS configuration to be installed, as a URI fragment in the flake-uri. | As for error #2 |

View File

@ -26,5 +26,3 @@ listed below.
| | | | | | | | | | | |
| | | | | | | | | | | |
| | | | | | | | | | | |
##

View File

@ -9,8 +9,7 @@
programs.nixpkgs-fmt.enable = true; programs.nixpkgs-fmt.enable = true;
programs.shellcheck.enable = true; programs.shellcheck.enable = true;
programs.shfmt.enable = true; programs.shfmt.enable = true;
programs.prettier.enable = true; programs.deno.enable = true;
settings.formatter.prettier.options = [ "--prose-wrap" "always" ];
settings.formatter.shellcheck.options = [ "-s" "bash" ]; settings.formatter.shellcheck.options = [ "-s" "bash" ];
}; };
formatter = config.treefmt.build.wrapper; formatter = config.treefmt.build.wrapper;