From 7ed7eaa602c67a79d312664e7975dd19c9680a31 Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 21 Apr 2025 14:04:17 +0300 Subject: [PATCH] use the nix registries --- modules/nix-settings.nix | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/modules/nix-settings.nix b/modules/nix-settings.nix index 051f17a..751980b 100644 --- a/modules/nix-settings.nix +++ b/modules/nix-settings.nix @@ -28,13 +28,25 @@ # enable nix flakes nix.settings.experimental-features = ["nix-command" "flakes"]; - nix.nixPath = [ - "nixpkgs=${inputs.nixpkgs}" - "nixos-config=${inputs.self}" - ]; + nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"]; nix.channel.enable = false; + nix.registry = { + self.flake = inputs.self; + osbm-nvim = { + to = { + owner = "osbm"; + repo = "osbm-nvim"; + type = "github"; + }; + from = { + id = "osbm-nvim"; + type = "indirect"; + }; + }; + }; + nix.settings.trusted-users = ["root" "osbm"]; nix.gc = {