No description
Find a file
2022-06-05 20:38:25 +02:00
.github/workflows CI 2022-06-05 20:38:25 +02:00
hosts Things 2022-06-05 14:51:20 +02:00
lib A new start 2021-09-29 21:37:59 +02:00
modules testing manjaro kernel 2022-04-01 23:58:16 +02:00
overlays Spring cleaning 2022-05-28 19:16:21 +02:00
pkgs Things 2022-06-05 16:51:00 +02:00
profiles Things 2022-06-05 15:35:26 +02:00
shell testing manjaro kernel 2022-04-01 23:58:16 +02:00
users Things 2022-06-05 16:51:00 +02:00
.editorconfig A new start 2021-09-29 21:37:59 +02:00
.envrc A new start 2021-09-29 21:37:59 +02:00
.gitignore Various changes 2022-05-14 00:15:03 +02:00
bors.toml A new start 2021-09-29 21:37:59 +02:00
default.nix A new start 2021-09-29 21:37:59 +02:00
emacs.d Various 2022-04-30 14:07:16 +02:00
flake.lock Spring cleaning 2022-05-28 19:16:21 +02:00
flake.nix CI 2022-06-05 20:32:04 +02:00
README.org New CI described 2022-06-05 19:17:44 +02:00
shell.nix A new start 2021-09-29 21:37:59 +02:00

NixFleet

A complete, declarative and reproducible configuration of my entire Nix fleet, this includes the following machines:

  • my main home workstation pc
  • homeserver (mainly a nas) hs
  • my arm based PineBook Pro pbp, almost completely open hardware

The different confgurations share many profiles, in fact my original goal was to avoid to rewrite the same Nix derivations for my different machines.

Continuous integration

At every commit a GitHub action builds all the machines and publish the artifacts produces to /aciceri/nixfleet/src/commit/ee596b3db9d0d3638d0c221e9ca8c39c6f7eea85/aciceri-fleet.cachix.org. Moreover, every night, another GitHub action is triggered and it try to update the flake's lockfile creating a PR, the same GitHub action is before is run against the branch of this PR.

Commands

Here I describe my most used commands. All the commands are executed inside the Flake's development shell. To enter in this shell is sufficent to cd in the folder (if you use direnv) or run nix develop.

Checking

To check that the Nix Flake is well defined:

  nix flake check

Building

nix -Lv build
".#nixosConfigurations.<host>.config.system.build.toplevel"

where <host> is the hostname e.g. pc.

Testing new config

  bud rebuild <host> test

where <host> is the hostname e.g. pc.

Switching

  bud rebuild <host> switch

where <host> is the hostname e.g. pc.

Remote deploy

  deploy -d --hostname <hostname> '.#<host>' --skip-checks --ssh-user root

where

  • <hostname> is the remote machine hostname or ip
  • <host> is one between pc, pbp or hs

Github Actions

Check and build

At every commit pushed on master a Github actions which nix flake check the flake is executed and then every system is build. Currently this workflow will skip aarch64 hosts since the runner is x86_64 and I didn't find a way to make it cross compile.

Release

At every tagged commit whose tag name starts with release- a process that releases all the bootstrap ISOs for the systems is started. Here I've the same problem with aarch64 hosts so the runner will skip them.