diff options
| author | Grisha Shipunov | 2025-01-11 03:55:19 +0100 |
|---|---|---|
| committer | Grisha Shipunov | 2025-01-11 03:55:19 +0100 |
| commit | 62e2519639faa250f43f9e80e69906a59d07a44e (patch) | |
| tree | 08d662d7674904d566d2dd7ccf85affb9ddd7cd9 /modules/basic-tools/nix.nix | |
| parent | 595d4935de99cc2ff10be9eaddac498c7c38489f (diff) | |
delete legacy stuff and reformat
Diffstat (limited to 'modules/basic-tools/nix.nix')
| -rw-r--r-- | modules/basic-tools/nix.nix | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/modules/basic-tools/nix.nix b/modules/basic-tools/nix.nix index 9faa527..980ab76 100644 --- a/modules/basic-tools/nix.nix +++ b/modules/basic-tools/nix.nix @@ -1,9 +1,15 @@ -{ lib, pkgs, inputs, ... }: { +{ + lib, + pkgs, + inputs, + ... +}: +{ nix = { extraOptions = '' - experimental-features = nix-command flakes - narinfo-cache-negative-ttl = 0 + experimental-features = nix-command flakes + narinfo-cache-negative-ttl = 0 ''; }; @@ -12,8 +18,10 @@ # 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; + 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; |
