use unstable nix for everything

This commit is contained in:
Noah Masur 2022-01-13 09:39:48 -05:00
parent fc66f23a49
commit 31fc8e204f
2 changed files with 22 additions and 14 deletions

4
nixos/channels.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
doas nix-channel --add https://nixos.org/channels/nixos-unstable
doas nix-channel --add https://nixos.org/channels/nixpkgs-unstable

View File

@ -2,8 +2,7 @@
let
# Import unstable channel (for Neovim 0.5)
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
# Nothing
in
@ -16,7 +15,6 @@ in
neovim
gcc # for tree-sitter
alacritty
# unstable.neovim
tmux
rsync
ripgrep
@ -28,6 +26,7 @@ in
tealdeer
_1password-gui
discord
gh
];
#programs.alacritty = {
@ -200,17 +199,6 @@ in
"nvim/init.lua".source = ./init.lua;
};
# nixpkgs.overlays = [(
# self: super: {
# neovim = unstable.neovim;
# })
# ];
nixpkgs.overlays = [
(import (builtins.fetchTarball {
url = https://github.com/nix-community/neovim-nightly-overlay/archive/master.tar.gz;
}))
];
#programs.neovim = {
# enable = true;
# # package = pkgs.neovim-nightly;
@ -245,6 +233,22 @@ in
core = {
editor = "nvim";
};
pager = {
branch = "false";
};
#credential = {
# helper = "store";
#};
/* credential = { */
/* "https://github.com/helper" = "!gh auth git-credential"; */
/* }; */
};
};
programs.gh = {
#package = nixos-unstable.gh;
enable = true;
enableGitCredentialHelper = true;
settings.git_protocol = "https";
};
}