From f1dff74fa558a7f8cd8c396e774e483758fb672d Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Wed, 5 Jun 2024 20:43:04 +0100 Subject: [PATCH] Move pin to separate file --- hive.nix | 7 +------ pinning.nix | 10 ++++++++++ 2 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 pinning.nix diff --git a/hive.nix b/hive.nix index 2775603..fe52c2a 100644 --- a/hive.nix +++ b/hive.nix @@ -11,14 +11,9 @@ in { wget ]; - # Make point systemwide to the pinned nixpkgs above - # https://jade.fyi/blog/pinning-nixos-with-npins/ - nix.settings.experimental-features = "nix-command flakes"; - nixpkgs.flake.source = sources.nixpkgs; - nix.nixPath = [ "nixpkgs=flake:nixpkgs" ]; - imports = [ (import "${sources.home-manager}/nixos") + ./pinning.nix ./users/qenya.nix ]; }; diff --git a/pinning.nix b/pinning.nix new file mode 100644 index 0000000..9ac8584 --- /dev/null +++ b/pinning.nix @@ -0,0 +1,10 @@ +{ config, lib, pkgs, ... }: + +let sources = import ./npins; +in { + # Make point systemwide to the pinned nixpkgs + # https://jade.fyi/blog/pinning-nixos-with-npins/ + nix.settings.experimental-features = "nix-command flakes"; + nixpkgs.flake.source = sources.nixpkgs; + nix.nixPath = [ "nixpkgs=flake:nixpkgs" ]; +}