Commit graph

5 commits

Author SHA1 Message Date
Gabriel Fontes 871bcba925
update to nixos 22.11, add a couple comments 2022-12-02 15:19:40 -03:00
Gabriel Fontes 8071557c31
reorganize modules and overlays
This update makes using flake (self or external) modules and overlays
more explicit, by setting nixpkgs options directly in the config,
instead of the flake. To help import your own overlays and modules, the
`outputs` attribute is now available on your configs.
2022-11-08 17:59:31 -03:00
Gabriel Fontes 3face7eddd set overlays through modules
This changes how the templates use nixpkgs. Before, we instantiated
nixpkgs in the flake and passd it directly to the configs; this was good
for consistency, but silently ignored `nixpkgs.*` options, generating
confusion among users. We now use modules to configure nixpkgs.

This should help avoid cases such as:
https://discourse.nixos.org/t/allowunfree-doesnt-work-with-flake-managed-system/21798/17

The drawback is that we can no longer test overlayed packages like so:
`nix build .#foo`, you can do it like so instead: `nix build
.#nixosConfigurations.your-system.pkgs.foo`.

Personally, I've been avoiding override packages globally in my own
config.
2022-11-05 14:43:53 -03:00
Gabriel Fontes 5405cbbdb2
bump flakes 2022-10-07 09:25:01 -03:00
Gabriel Fontes a06bdecdad
new version, with both templates on the same branch 2022-08-05 22:34:46 -03:00