Excise flakes in favour of npins and colmena

This commit is contained in:
Katherina Walshe-Grey 2024-05-28 19:50:39 +01:00
parent a2cf41eeff
commit 4c4a5f79c3
6 changed files with 118 additions and 49 deletions

23
pinning.nix Normal file
View file

@ -0,0 +1,23 @@
{ config, pkgs, ... }:
let sources = import ./npins;
in {
# https://jade.fyi/blog/pinning-nixos-with-npins/
# We need the flakes experimental feature to do the NIX_PATH thing cleanly
# below. Given that this is literally the default config for flake-based
# NixOS installations in the upcoming NixOS 24.05, future Nix/Lix releases
# will not get away with breaking it.
nix.settings.experimental-features = "nix-command flakes";
# FIXME(24.05 or nixos-unstable): change following two rules to
#
# nixpkgs.flake.source = sources.nixpkgs;
#
# which does the exact same thing, using the same machinery as flake configs
# do as of 24.05.
nix.registry.nixpkgs.to = {
type = "path";
path = sources.nixpkgs;
};
nix.nixPath = ["nixpkgs=flake:nixpkgs"];
}