mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 03:31:34 +01:00
Set registry and nixPath
This commit is contained in:
parent
5fb05b38a4
commit
33657999e2
1 changed files with 26 additions and 15 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
config,
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
self,
|
self,
|
||||||
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
@ -10,9 +11,19 @@
|
||||||
|
|
||||||
networking.domain = "stork-atlas.ts.net";
|
networking.domain = "stork-atlas.ts.net";
|
||||||
|
|
||||||
nix = {
|
nix =
|
||||||
|
let
|
||||||
|
flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs;
|
||||||
|
in
|
||||||
|
{
|
||||||
channel.enable = false;
|
channel.enable = false;
|
||||||
|
registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs;
|
||||||
|
nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
flake-registry = "";
|
||||||
|
nix-path = config.nix.nixPath;
|
||||||
|
|
||||||
experimental-features = [
|
experimental-features = [
|
||||||
"nix-command"
|
"nix-command"
|
||||||
"flakes"
|
"flakes"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue