flake: switch to npins

Signed-off-by: Bloxx12 <charlie@charlieroot.dev>
Change-Id: I6a6a6964f4aa3349951fe7574622564452ad1af1
This commit is contained in:
Bloxx12 2025-07-19 21:51:37 +02:00
commit 0b82c15255
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
24 changed files with 707 additions and 731 deletions

View file

@ -1,7 +1,7 @@
# credits to raf
{
config,
inputs,
sources,
lib,
pkgs,
...
@ -9,10 +9,6 @@
inherit (lib.attrsets) mapAttrsToList;
inherit (lib.modules) mkForce;
in {
imports = [
inputs.determinate.nixosModules.default
];
nix = {
# Check that Nix can parse the generated nix.conf.
checkConfig = true;
@ -25,9 +21,9 @@ in {
# this is taken from sioodmy.
# pin the registry to avoid downloading and evaling a new nixpkgs version every time
registry =
lib.mapAttrs (_: v: {flake = v;}) inputs
// {system.flake = inputs.self;};
# registry =
# lib.mapAttrs (_: v: {flake = v.outPath;}) sources
# // {system.flake = sources.nichts;};
# Add inputs to the system's legacy channels
# to make legacy nix commands consistent as well
@ -157,7 +153,7 @@ in {
];
# Determinate nix config
# ===========================================
lazy-trees = true;
# lazy-trees = true;
# ===========================================
};
};