Commit graph

16 commits

Author SHA1 Message Date
Gabriel Fontes 5b6d9a064c update to nixos 22.11, add a couple comments 2023-02-20 16:43:14 -03:00
Gabriel Fontes cdf4442d10 workaround for nix-community/home-manager#2942 2023-02-20 16:43:14 -03:00
Gabriel Fontes 5f6910ff8e minimal: remove leftover nixosSystem pkgs arg 2023-02-20 16:43:14 -03:00
Gabriel Fontes 7c8941a764 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.
2023-02-20 16:43:14 -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
Alex Griffin cba449c071 fix typos 2022-10-20 14:50:57 -05:00
Gabriel Fontes 760ff58349
formatting 2022-10-07 09:41:39 -03:00
Gabriel Fontes 5405cbbdb2
bump flakes 2022-10-07 09:25:01 -03:00
Gabriel Fontes ef39c00b0d
remove misleading nixpkgs.config.*, set allowUnfree by default 2022-10-07 09:22:41 -03:00
Gabriel Fontes 2e4b816bd6
eval nixpkgs on minimal, document nixpkgs config
Fixes https://github.com/Misterio77/nix-starter-configs/issues/3
2022-09-19 10:56:25 -03:00
Gabriel Fontes be00b40c8f
improve flake config formatting a bit 2022-08-08 20:24:37 -03:00
Gabriel Fontes f4506ceef6
your-name -> your-hostname 2022-08-05 22:57:41 -03:00
Gabriel Fontes 5981a6010b
remove profile activation, add channel sync to default nixos config 2022-08-05 22:55:29 -03:00
Gabriel Fontes 5b996debfa
add shameless plug about nix-colors 2022-08-05 22:52:49 -03:00
Gabriel Fontes f14dd63584
remove leftover readme 2022-08-05 22:38:04 -03:00
Gabriel Fontes a06bdecdad
new version, with both templates on the same branch 2022-08-05 22:34:46 -03:00