Pin nixpkgs on buck

This commit is contained in:
Jacob Hinkle 2022-10-13 08:41:53 -04:00
parent 7fa9ec19c4
commit beff889a18

View File

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, sops, ... }: { config, pkgs, inputs, sops, ... }:
{ {
imports = imports =
@ -10,6 +10,12 @@
./hardware-configuration.nix ./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 = { sops = {
# This will add secrets.yml to the nix store # This will add secrets.yml to the nix store
# You can avoid this by adding a string to the full path instead, i.e. # You can avoid this by adding a string to the full path instead, i.e.