2023-02-14 22:00:22 +01:00
|
|
|
{ lib, pkgs, inputs, ... }: {
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
extraOptions = ''
|
2023-06-12 23:36:27 +02:00
|
|
|
experimental-features = nix-command flakes
|
|
|
|
narinfo-cache-negative-ttl = 0
|
2023-02-14 22:00:22 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2023-03-25 16:41:09 +01:00
|
|
|
# nix output-monitor
|
|
|
|
environment.systemPackages = [ pkgs.nix-output-monitor ];
|
|
|
|
|
2023-02-14 22:00:22 +01:00
|
|
|
# override default nix shell nixpkgs# behaviour to use current flake lock
|
|
|
|
nix.registry =
|
|
|
|
let flakes = lib.filterAttrs (_name: value: value ? outputs) inputs.self.inputs;
|
|
|
|
in builtins.mapAttrs (_name: v: { flake = v; }) flakes;
|
|
|
|
|
|
|
|
nix.nixPath = lib.mapAttrsToList (name: value: "${name}=${value.outPath}") inputs.self.inputs;
|
2025-01-02 18:45:55 +00:00
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
2023-02-14 22:00:22 +01:00
|
|
|
}
|