From beff889a188568d5076f3873b54b446f0c96eb36 Mon Sep 17 00:00:00 2001 From: Jacob Hinkle Date: Thu, 13 Oct 2022 08:41:53 -0400 Subject: [PATCH] Pin nixpkgs on buck --- machines/buck/configuration.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/machines/buck/configuration.nix b/machines/buck/configuration.nix index a3f7b16..533bb69 100644 --- a/machines/buck/configuration.nix +++ b/machines/buck/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ config, pkgs, sops, ... }: +{ config, pkgs, inputs, sops, ... }: { imports = @@ -10,6 +10,12 @@ ./hardware-configuration.nix ]; + # This lets us pin the nixpkgs registry by default to the nixpkgs used to build this system. + # Doing this means we are less likely to require the 30+MB download when + # running commands like nix search or nix run + # See: https://dataswamp.org/~solene/2022-07-20-nixos-flakes-command-sync-with-system.html + nix.registry.nixpkgs.flake = inputs.nixpkgs; + sops = { # This will add secrets.yml to the nix store # You can avoid this by adding a string to the full path instead, i.e.