From 4e15c21df7a2b3089eaefd552714efe03609c00f Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 17 Sep 2022 21:15:31 -0400 Subject: [PATCH] set flake registry to flake nixpkgs --- hosts/desktop/default.nix | 2 ++ modules/neovim/lua/packer/visuals.lua | 4 ++++ modules/shell/nixpkgs.nix | 8 ++++++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index 6cc6237..696bfd7 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -10,6 +10,8 @@ nixpkgs.lib.nixosSystem { { networking.hostName = "desktop"; nixpkgs.overlays = [ nur.overlay ]; + # Set registry to flake packages, used for nix X commands + registry.nixpkgs.flake = nixpkgs; gaming.steam = true; gaming.leagueoflegends = true; gaming.legendary = true; diff --git a/modules/neovim/lua/packer/visuals.lua b/modules/neovim/lua/packer/visuals.lua index 0e502b7..874ff54 100644 --- a/modules/neovim/lua/packer/visuals.lua +++ b/modules/neovim/lua/packer/visuals.lua @@ -121,6 +121,10 @@ M.packer = function(use) }, }) vim.keymap.set("n", "e", ":NvimTreeFindFileToggle", { silent = true }) + + -- https://github.com/kyazdani42/nvim-tree.lua/commit/fb8735e96cecf004fbefb086ce85371d003c5129 + vim.g.loaded = 1 + vim.g.loaded_netrwPlugin = 1 end, }) diff --git a/modules/shell/nixpkgs.nix b/modules/shell/nixpkgs.nix index 279e1a5..6e71319 100644 --- a/modules/shell/nixpkgs.nix +++ b/modules/shell/nixpkgs.nix @@ -53,7 +53,11 @@ }; - # Set system channels, used for nix-shell commands - nix = { nixPath = [ "nixpkgs=${pkgs.path}" ]; }; + nix = { + + # Set channel to flake packages, used for nix-shell commands + nixPath = [ "nixpkgs=${pkgs.path}" ]; + + }; }