Add nix flake check remark to docu
buildbot/nix-build .#checks.x86_64-linux.clan-dep-nix Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-dep-bash Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-dep-fakeroot Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-dep-e2fsprogs Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-dep-git Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-dep-age Build done. Details
buildbot/nix-build .#checks.x86_64-linux.check-for-breakpoints Build done. Details
buildbot/nix-build .#checks.aarch64-darwin.nixos-test_install_machine Build done. Details
buildbot/nix-build .#checks.x86_64-linux.devShell-docs Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-module-docs Build done. Details
buildbot/nix-build .#checks.aarch64-darwin.nixos-test-backup Build done. Details
buildbot/nix-build .#checks.x86_64-linux.borgbackup Build done. Details
buildbot/nix-build .#checks.aarch64-linux.nixos-test-backup Build done. Details
buildbot/nix-build .#checks.x86_64-linux.renderClanOptions Build done. Details
buildbot/nix-build .#checks.aarch64-linux.nixos-test_install_machine Build done. Details
buildbot/nix-build .#checks.aarch64-darwin.nixos-flash-installer Build done. Details
buildbot/nix-build .#checks.aarch64-darwin.nixos-iso-installer Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-dep-openssh Build done. Details
buildbot/nix-build .#checks.x86_64-linux."clan-dep-python3.11-mypy" Build done. Details
buildbot/nix-build .#checks.x86_64-linux."clan-dep-python3.11-qemu" Build done. Details
buildbot/nix-build .#checks.x86_64-linux.nixos-test-backup Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-dep-rsync Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-dep-sops Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-dep-sshpass Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-dep-tor Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-dep-zbar Build done. Details
buildbot/nix-build .#checks.aarch64-linux.nixos-flash-installer Build done. Details
buildbot/nix-build .#checks.aarch64-linux.nixos-iso-installer Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-vm-manager-no-breakpoints Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-vm-manager-pytest Build done. Details
buildbot/nix-build .#checks.x86_64-linux.devShell-clan-vm-manager Build done. Details
buildbot/nix-build .#checks.x86_64-linux.devShell-default Build done. Details
buildbot/nix-build .#checks.x86_64-linux.devShell-clan-cli Build done. Details
buildbot/nix-build .#checks.x86_64-linux.lib-jsonschema-example-valid Build done. Details
buildbot/nix-build .#checks.x86_64-linux.lib-jsonschema-nix-unit-tests Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-pytest-without-core Build done. Details
buildbot/nix-build .#checks.x86_64-linux.container Build done. Details
buildbot/nix-build .#checks.x86_64-linux.deltachat Build done. Details
buildbot/nix-build .#checks.x86_64-linux.matrix-synapse Build done. Details
buildbot/nix-build .#checks.x86_64-linux.nixos-test_install_machine Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-default Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-clan-cli Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-impure-checks Build done. Details
buildbot/nix-build .#checks.x86_64-linux.module-schema Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-clan-vm-manager Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-clan-cli-docs Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-moonlight-sunshine-accept Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-merge-after-ci Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-tea-create-pr Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-wayland-proxy-virtwl Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-zerotier-members Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-zerotierone Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-zt-tcp-relay Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-pending-reviews Build done. Details
buildbot/nix-build .#checks.x86_64-linux.treefmt Build done. Details
buildbot/nix-build .#checks.x86_64-linux.nixos-iso-installer Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-deploy-docs Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-module-schema Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-function-schema Build done. Details
buildbot/nix-build .#checks.x86_64-linux.nixos-flash-installer Build done. Details
buildbot/nix-build .#checks.x86_64-linux.secrets Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-iso-installer Build done. Details
buildbot/nix-build .#checks.x86_64-linux.wayland-proxy-virtwl Build done. Details
buildbot/nix-build .#checks.x86_64-linux.zt-tcp-relay Build done. Details
buildbot/nix-build .#checks.x86_64-linux.syncthing Build done. Details
buildbot/nix-build .#checks.x86_64-linux.package-docs Build done. Details
buildbot/nix-build .#checks.x86_64-linux.clan-pytest-with-core Build done. Details
buildbot/nix-build .#checks.x86_64-linux.flash Build done. Details
buildbot/nix-build .#checks.x86_64-linux.test-backups Build done. Details
checks / checks-impure (pull_request) Successful in 3m11s Details
buildbot/nix-build .#checks.x86_64-linux.test-installation Build done. Details
buildbot/nix-eval Build done. Details

This commit is contained in:
Luis Hebendanz 2024-05-14 18:20:56 +02:00
parent 1c2781267b
commit 1e94bf02da
1 changed files with 23 additions and 7 deletions

View File

@ -157,21 +157,37 @@ Adding or configuring a new machine requires two simple steps:
These steps will allow you to update your machine later.
#### Step 2: Detect Drivers
Generate the `hardware-configuration.nix` file for your machine using the following command:
### Step 2: Detect Drivers
Generate the `hardware-configuration.nix` file for your machine by executing the following command:
```bash
ssh root@flash-installer.local nixos-generate-config --no-filesystems --show-hardware-config > machines/jon/hardware-configuration.nix
```
#### Step 3: Custom Disk Formatting
In `./modules/disko.nix` a simple `ext4` disk partioning is defined for the disko module.
If you want a more complicated disk partioning setup look into the [disko examples](https://github.com/nix-community/disko/tree/master/example)
This command connects to `flash-installer.local` as `root`, runs `nixos-generate-config` to detect hardware configurations (excluding filesystems), and writes them to `machines/jon/hardware-configuration.nix`.
### Step 3: Custom Disk Formatting
#### Step 4: Custom Configuration
In `./machines/jon/configuration.nix`, you can personalize the settings to suit your needs.
In `./modules/disko.nix`, a simple `ext4` disk partitioning scheme is defined for the Disko module. For more complex disk partitioning setups, refer to the [Disko examples](https://github.com/nix-community/disko/tree/master/example).
### Step 4: Custom Configuration
Modify `./machines/jon/configuration.nix` to personalize the system settings according to your requirements.
### Step 5: Check Configuration
Validate your configuration by running:
```bash
nix flake check
```
This command helps ensure that your system configuration is correct and free from errors.
!!! Note
Integrate this step into your [Continuous Integration](https://en.wikipedia.org/wiki/Continuous_integration) workflow to ensure that only valid Nix configurations are merged into your codebase. This practice helps maintain system stability and reduces integration issues.
---