nix-config/modules/basic-tools/nix.nix

30 lines
641 B
Nix
Raw Permalink Normal View History

2025-01-11 03:55:19 +01:00
{
lib,
pkgs,
inputs,
...
}:
{
2023-02-14 22:00:22 +01:00
nix = {
extraOptions = ''
2025-01-11 03:55:19 +01: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 =
2025-01-11 03:55:19 +01:00
let
flakes = lib.filterAttrs (_name: value: value ? outputs) inputs.self.inputs;
in
builtins.mapAttrs (_name: v: { flake = v; }) flakes;
2023-02-14 22:00:22 +01:00
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
}