Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define the initial NixOS configuration of webforge in a flake with CI support #33

Merged
merged 10 commits into from
Mar 20, 2025

Conversation

btlogy
Copy link
Member

@btlogy btlogy commented Jan 29, 2025

Duplicates #32 which implements #31 and adds support for CI with 99 extra LoC, which partly implements #34.

The CI supports is actually automating the 3 first commands described in #31:

nix flake check
nix build .#nixosConfigurations.webforge.config.system.build.toplevel
nixos-rebuild dry-activate --flake .#webforge --target-host root@webforge.tahoe-lafs.org

The automated deployment will come later (with a lot more LoC).

Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
@btlogy btlogy force-pushed the 31.initial-webforge-nix-with-ci branch from dab11ea to 4bfd3e9 Compare February 13, 2025 16:32
Co-authored-by: Florian Sesser <florian@leastauthority.com>
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
@btlogy btlogy force-pushed the 31.initial-webforge-nix-with-ci branch from 4bfd3e9 to efd74ff Compare February 13, 2025 16:39
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
@btlogy btlogy requested a review from hacklschorsch February 13, 2025 16:44
@btlogy
Copy link
Member Author

btlogy commented Feb 13, 2025

@hacklschorsch was right: the initial way this PR was dealing with nix eval to dynamically create a matrix job was over-complicated for only a few host in this project...
We might find a better way to re-introduce this later (if ever needed).
But for now, we just repeat the sysname, hostname and domainname in nix and in GHA, and that's fine if it is easier to maintain.

Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
@btlogy btlogy force-pushed the 31.initial-webforge-nix-with-ci branch from c933685 to d3173b8 Compare March 20, 2025 15:24
@btlogy btlogy requested a review from hacklschorsch March 20, 2025 15:52
@btlogy btlogy merged commit a141d5f into main Mar 20, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants