refactor(nix): improve neovim nightly handling
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 40s

This commit is contained in:
Price Hiller 2024-10-31 13:12:01 -05:00
parent 854d57e006
commit 720ea2d89f
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
5 changed files with 28 additions and 43 deletions

View File

@ -6,7 +6,6 @@
deploy-rs.url = "github:serokell/deploy-rs";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-master.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
@ -15,10 +14,6 @@
url = "github:nix-community/lanzaboote";
inputs.nixpkgs.follows = "nixpkgs";
};
bob = {
flake = false;
url = "github:MordechaiHadad/bob";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
@ -30,6 +25,7 @@
};
impermanence = {
url = "github:nix-community/impermanence";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
@ -42,7 +38,17 @@
emacs-overlay = {
url = "github:nix-community/emacs-overlay";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
neovim-src = {
url = "github:neovim/neovim";
flake = false;
};
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
inputs = {
neovim-src.follows = "neovim-src";
nixpkgs.follows = "nixpkgs";
};
};
secrets = {
url = "git+file:secrets?submodules=1";
@ -93,6 +99,7 @@
imports = [ inputs.agenix.homeManagerModules.default ];
nixpkgs.overlays = [
inputs.emacs-overlay.overlays.default
inputs.neovim-nightly-overlay.overlays.default
inputs.fenix.overlays.default
self.overlays.modifications
self.overlays.additions

View File

@ -1,27 +0,0 @@
{
installShellFiles,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "bob";
version = "3.0.1";
buildInputs = [ installShellFiles ];
src = fetchFromGitHub {
owner = "MordechaiHadad";
repo = "bob";
rev = "v${version}";
hash = "sha256-Op/NXWssylgAOb1BccSOz7JqXFranzAsGICFMF3o/K8=";
};
cargoLock.lockFile = "${src}/Cargo.lock";
postInstall = # bash
''
installShellCompletion --cmd bob \
--bash <($out/bin/bob complete bash) \
--zsh <($out/bin/bob complete zsh) \
--fish <($out/bin/bob complete fish)
'';
}

View File

@ -1,9 +1,5 @@
{ pkgs, ... }:
{
bob-nvim = pkgs.callPackage ./bob-nvim.nix {
rustPlatform = pkgs.rustPlatform;
fetchFromGitHub = pkgs.fetchFromGitHub;
};
screen-cap = pkgs.callPackage ./screen-cap/default.nix { };
Fmt = pkgs.writeShellApplication {
name = "Fmt";

View File

@ -0,0 +1,12 @@
{
pkgs,
...
}:
{
home = {
packages = with pkgs; [
neovide
neovim
];
};
}

View File

@ -70,8 +70,6 @@ in
nodePackages.prettier
python3
shfmt
bob-nvim
neovide
wezterm
kitty
sqlite
@ -148,10 +146,7 @@ in
ninja
ccache
llvm
llvmPackages.libcxxStdenv
pkg-config
openssl.dev
curl.dev
];
file = softLinkDots ".config";
@ -175,7 +170,9 @@ in
GRADLE_USER_HOME = "${config.xdg.dataHome}/gradle";
_JAVA_OPTIONS = "-Djava.util.prefs.userRoot='${config.xdg.configHome}/java'";
};
sessionPath = [ "${config.xdg.dataHome}/bin" ];
sessionPath = [
"${config.home.homeDirectory}/.local/bin"
];
};
xdg = {