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

Refactor and tidy the flake definition. #13

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Refactor and tidy the flake definition. #13

wants to merge 6 commits into from

Commits on Oct 22, 2024

  1. Configuration menu
    Copy the full SHA
    e8d87ee View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1da9147 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Apply suggestions from code review

    Co-authored-by: Rich FitzJohn <[email protected]>
    plietar and richfitz authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    7d85cf3 View commit details
    Browse the repository at this point in the history
  2. Code review.

    plietar committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    a0d6366 View commit details
    Browse the repository at this point in the history
  3. Merge branch '1bde8c5'

    plietar committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    a1d8677 View commit details
    Browse the repository at this point in the history
  4. Refactor and tidy the flake definition.

    This removes a bunch of duplication in the deploy/start-vm/diff scripts
    left over from the introduction of the wpia-packit-private machine.
    These script now only exist as one script, that accepts a machine name
    as their argument.
    
    In order to split up the `flake.nix` file, it makes use of the
    [`flake-parts`][flake-parts] library. This library uses the same module
    system as NixOS itself, but at the flake configuration level itself.
    
    The deploy script is changed from using `nixos-rebuild switch` to our
    own implementation of it. The primary goal of this is to ensure
    the derivation of the built system gets deployed too, allowing us to
    reliable diff the system state in the future.
    
    [flake-parts]: https://flake.parts/
    plietar committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    acd8532 View commit details
    Browse the repository at this point in the history