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" ]; +}