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

feat/nixos module #20

Merged
merged 5 commits into from
Jul 19, 2024
Merged

feat/nixos module #20

merged 5 commits into from
Jul 19, 2024

Conversation

brianmcgee
Copy link
Member

@brianmcgee brianmcgee commented Jul 10, 2024

A first attempt at a pattern for building up NixOS modules from the json report produced by nixos-facter.

TODO

Only thing the go code does anymore is generate the hardware report. We will replace the config generation with a NixOS module.

Signed-off-by: Brian McGee <brian@bmcgee.ie>
- snake_case for json output
- key hardware lists by hardware class
- canonically sort hardware lists e.g. stable report output

Signed-off-by: Brian McGee <brian@bmcgee.ie>
Signed-off-by: Brian McGee <brian@bmcgee.ie>
cmd/root.go Show resolved Hide resolved
nix/hosts/basic/config.nix Show resolved Hide resolved
nix/modules/nixos/boot.nix Show resolved Hide resolved
nix/modules/nixos/networking/broadcom.nix Outdated Show resolved Hide resolved
@phaer
Copy link
Member

phaer commented Jul 15, 2024

update blueprint flake input once numtide/blueprint#25 is merged

I think thats good to update now? flake.lock still points to your local blueprint checkout.

@brianmcgee brianmcgee force-pushed the feat/nixos-module branch 2 times, most recently from 3af5f06 to ebbc6f3 Compare July 16, 2024 08:49
@brianmcgee brianmcgee self-assigned this Jul 16, 2024
A first pass at an architecture for generating NixOS configuration based on the nixos-facter json output.

Signed-off-by: Brian McGee <brian@bmcgee.ie>
Breaking change in how nixos configurations are specified.

Signed-off-by: Brian McGee <brian@bmcgee.ie>
@brianmcgee brianmcgee merged commit 50afbbb into main Jul 19, 2024
@brianmcgee brianmcgee deleted the feat/nixos-module branch July 19, 2024 08:23
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.

None yet

4 participants