From c42933caedfbf9f8e5fd3b2bac0c3ff6e0fa0a3c Mon Sep 17 00:00:00 2001 From: winston Date: Tue, 7 Feb 2023 03:55:38 +0100 Subject: [PATCH] feat: remove nix-channel references, use tarballs --- darwin.nix | 4 +++- modules/neovim.nix | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/darwin.nix b/darwin.nix index 968a288..71aa8bb 100644 --- a/darwin.nix +++ b/darwin.nix @@ -6,7 +6,9 @@ let userName = builtins.getEnv "USER"; homeDir = builtins.getEnv "HOME"; - pkgsUnstable = import {}; + + unstable = fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"; + pkgsUnstable = import unstable { config.allowUnfree = true; }; in { diff --git a/modules/neovim.nix b/modules/neovim.nix index c5bfb27..fc08e5b 100644 --- a/modules/neovim.nix +++ b/modules/neovim.nix @@ -1,8 +1,10 @@ { config, pkgs, ... }: let - pkgsUnstable = import {}; + unstable = fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz"; + pkgsUnstable = import unstable { config.allowUnfree = true; }; in + { home.sessionVariables = { EDITOR = "nvim";