flake: switch to npins
Signed-off-by: Bloxx12 <charlie@charlieroot.dev> Change-Id: I6a6a6964f4aa3349951fe7574622564452ad1af1
This commit is contained in:
parent
45179ade64
commit
0b82c15255
24 changed files with 707 additions and 731 deletions
|
@ -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;
|
||||
# ===========================================
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue