From f0d261b781d69b9380bb43a008131cb3db846af9 Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 25 Mar 2023 07:56:48 +0100 Subject: Feat(system/services/nix): Add templates and short names --- system/services/nix/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'system/services/nix') diff --git a/system/services/nix/default.nix b/system/services/nix/default.nix index 15c3a026..afd26fab 100644 --- a/system/services/nix/default.nix +++ b/system/services/nix/default.nix @@ -1,8 +1,9 @@ +# vim: ts=2 { config, lib, pkgs, - nixpkgs, + inputs, ... }: { nix = { @@ -10,7 +11,13 @@ package = pkgs.nixVersions.stable; # this can't be in nix settings because of some "type error". See: # https://discourse.nixos.org/t/flakes-error-error-attribute-outpath-missing/18044 - registry.nixpkgs.flake = nixpkgs; + + registry = { + nixpkgs.flake = inputs.nixpkgs; + n.flake = inputs.nixpkgs; + t.flake = inputs.templates; + }; + gc = { automatic = true; dates = "weekly"; -- cgit 1.4.1