36 Commits
Author SHA1 Message Date
Gabriel Fontes fe4c4b136e remove nix 2.4 check step on readme
No one's running that at this point. See https://github.com/Misterio77/nix-starter-configs/issues/85
2026-04-23 23:00:13 -03:00
Gabriel Fontes ff1ded0966 update out of date notice 2026-04-23 22:59:52 -03:00
Gabriel Fontes 8f95a7a718 rename unstable overlay namespace
To avoid https://github.com/Misterio77/nix-starter-configs/issues/91
2026-04-23 22:57:37 -03:00
Gabriel Fontes 11e009d961 remove now redundant workarounds, old defaults, and some opinions
I particularly don't care for registry anymore now that nixpkgs comes set right out of the box in nixos.
2026-04-23 22:56:59 -03:00
Gabriel Fontes d86a715956 update to 25.11 2026-04-23 22:56:59 -03:00
Gabriel FontesandGitHub cd2634edb7 Update README.md 2024-09-06 22:05:58 -03:00
Gabriel Fontes a0fe65b6fd add opinionated markings for openssh settings 2024-04-27 11:16:29 -03:00
Gabriel Fontes 8204a490a7 simplify nix settings
- Don't auto-optimise-store by default
    - We should avoid arbitrary "sane defaults" in this template, as nixpkgs already has pretty sane defaults nowadays
- Simplify registry+nixPath
    - Instead of using a file as indirection (to avoid staleness), indirect it through the registry using `flake:nixpkgs`
    - Add a comment about nixos/nixpkgs#254405, which all this by default for nixpkgs
- Disable channels and flake registry by default
2024-04-27 11:14:10 -03:00
Gabriel Fontes 1c11308c9d move bootloader config to hardware-configuration 2024-04-27 10:54:28 -03:00
Gabriel FontesandCharlot Shaw 877f702df2 add note about out-of-date lock
Co-authored-by: Charlot Shaw <141575226+charlot-shaw@users.noreply.github.com>
2024-04-27 10:06:04 -03:00
Gabriel Fontes f1035a4484 bump to 23.11 2024-04-27 10:02:37 -03:00
Gabriel Fontes fe21fa1670 standard: simplify
Remove pkgsFor (use legacyPackages instead), remove shell, remove
support for legacy nix-build
2023-09-16 19:06:23 -03:00
Gabriel Fontes 8d0d1aa8be standard: document forAllSystems and pkgsFor 2023-09-16 18:56:30 -03:00
Gabriel Fontesanduf5 63975152b0 add alejandra as formatter
Co-authored-by: uf5 <notbailey13@gmail.com>
2023-09-16 18:49:32 -03:00
Gabriel Fontes 133826a072 minimal: expose outputs as well 2023-09-16 18:19:50 -03:00
Gabriel Fontes 5fa366f223 standard: remove unused rec 2023-09-16 18:19:50 -03:00
Gabriel Fontes 9e4963ae5c update to 23.05 2023-06-12 10:22:29 -03:00
Gabriel Fontes 80b652c13b bump locks 2023-05-20 10:50:46 -03:00
Gabriel Fontes 691c6579c7 fix wrong unstable overlay name 2023-02-20 17:32:28 -03:00
Gabriel Fontes 855b227325 bump flake locks 2023-02-20 17:30:28 -03:00
Gabriel Fontes b705378663 fix wrong unstable overlay name 2023-02-20 17:29:20 -03:00
Gabriel Fontes f313c8acec document how to use home-manager as NixOS module 2023-02-20 17:22:38 -03:00
Gabriel FontesandWill Forman f0e313c886 add nixpkgs-unstable to standard template
I decided it is a common enough usecase, so it makes sense to include it

Co-authored-by: Will Forman <wf8581@gmail.com>
2023-02-20 17:09:47 -03:00
Gabriel Fontes 0537107ce4 add overlays and pkgs by default
Related to https://github.com/Misterio77/nix-starter-configs/issues/16
2022-12-29 19:38:33 -03:00
Gabriel Fontes 871bcba925 update to nixos 22.11, add a couple comments 2022-12-02 15:19:40 -03:00
Gabriel Fontes ba725c1d6c add CC0 license 2022-11-28 08:58:25 -03:00
Gabriel Fontes cce47e4df5 workaround for nix-community/home-manager#2942 2022-11-13 16:59:32 -03:00
Gabriel Fontes 716ca80f29 minimal: remove leftover nixosSystem pkgs arg 2022-11-13 16:59:09 -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 15dda05d03 remove multi-nixpkgs template
I don't intend to maintain this template, right now. It'll still be
available at a separate branch.

This reverts commit 7bbdfe484c.
2022-11-08 16:12:00 -03:00
Gabriel Fontes 7bbdfe484c add multi-nixpkgs flake 2022-11-05 15:01:41 -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 FontesandGitHub b8e3385f6b Merge pull request #5 from ajgrf/main
Some minor improvements

- Comment fixes
- Use overlayed `legacyPackages` on `devShell`
2022-10-29 02:36:45 -03: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