Move <nixpkgs> pin to separate file
This commit is contained in:
parent
7b87bdbc2f
commit
f1dff74fa5
7
hive.nix
7
hive.nix
|
@ -11,14 +11,9 @@ in {
|
|||
wget
|
||||
];
|
||||
|
||||
# Make <nixpkgs> 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
|
||||
];
|
||||
};
|
||||
|
|
10
pinning.nix
Normal file
10
pinning.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let sources = import ./npins;
|
||||
in {
|
||||
# Make <nixpkgs> 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" ];
|
||||
}
|
Loading…
Reference in a new issue