Remove pre-24.05 workaround for pinning <nixpkgs>

This commit is contained in:
Katherina Walshe-Grey 2024-06-05 13:35:33 +01:00
parent c51b3f5a1a
commit 570e376e2e
2 changed files with 7 additions and 27 deletions

View file

@ -1,15 +1,18 @@
let sources = import ./npins;
in {
meta = {
nixpkgs = sources.nixpkgs;
};
meta.nixpkgs = sources.nixpkgs;
defaults = { pkgs, ... }: {
imports = [
./pinning.nix
(import "${sources.home-manager}/nixos")
];
deployment.replaceUnknownProfiles = false;
# 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"];
};
tohru = { name, nodes, ... }: {