refactor(nix): improve neovim nightly handling
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 40s
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 40s
This commit is contained in:
parent
854d57e006
commit
720ea2d89f
19
flake.nix
19
flake.nix
@ -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
|
||||
|
@ -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)
|
||||
'';
|
||||
}
|
@ -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";
|
||||
|
12
users/price/conf/nvim/default.nix
Normal file
12
users/price/conf/nvim/default.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
neovide
|
||||
neovim
|
||||
];
|
||||
};
|
||||
}
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user