Skip to content

Latest commit

 

History

History
executable file
·
28 lines (20 loc) · 602 Bytes

flakes.md

File metadata and controls

executable file
·
28 lines (20 loc) · 602 Bytes

Flakes

{ config, inputs, pkgs, lib, ... }:
{
  <<<modules/system/flakes>>>
}

Better integration of system with flakes

Enable flakes

nix.settings.experimental-features = "nix-command flakes";

Registries and Channels

Use the same registries and channels as this flake for the system (e.g. legacy nix-shell)

nix = {
  registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
  nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
};