aleeusgr / nix-things

a toolbox
1 stars 0 forks source link

look at `flake-parts`as kind of framework to manage my flakes as system conf #22

Closed aleeusgr closed 1 year ago

aleeusgr commented 1 year ago

I recently switched to flake-parts as kind of framework to manage my flakes, roughly as if they were configuration.

Therefore this flake currently still contains a lot of quick legacy stuff for easier migration. Basically everything you see here in the second code block is such legacy code.

The interesting part is the home_configs.nix and system_config,nix which define "options" that make it easier to create actual nixos and HM configurations as required by the respectve tooling.

Both modules are written in a way, that they follow a strict convention but make it easily possible to override specifics if necessary.

Originally posted by @NobbZ in https://github.com/aleeusgr/nixos-config/discussions/3#discussioncomment-4326039

aleeusgr commented 1 year ago

https://flake.parts/system.html

aleeusgr commented 1 year ago

used by nixos-rebuild https://flake.parts/options/flake-parts.html#opt-flake.nixosConfigurations

aleeusgr commented 1 year ago

https://flake.parts/options/flake-parts.html#opt-perSystem