fix(nvim): set useGlobalPackages
All checks were successful
/ check (nvimDev) (push) Successful in 5s
/ check (nvimHeadless) (push) Successful in 2s
/ check (nvimNoBundledBins) (push) Successful in 5s
/ check (nvimNoLsp) (push) Successful in 5s
/ check (nvimNoTSGrammars) (push) Successful in 4s
/ check (treefmt) (push) Successful in 2s
/ build (audiomenu) (push) Successful in 1s
/ build (docs) (push) Successful in 1s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 2s
/ build (nvim) (push) Successful in 1s
/ report-size (push) Successful in 4s
All checks were successful
/ check (nvimDev) (push) Successful in 5s
/ check (nvimHeadless) (push) Successful in 2s
/ check (nvimNoBundledBins) (push) Successful in 5s
/ check (nvimNoLsp) (push) Successful in 5s
/ check (nvimNoTSGrammars) (push) Successful in 4s
/ check (treefmt) (push) Successful in 2s
/ build (audiomenu) (push) Successful in 1s
/ build (docs) (push) Successful in 1s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 2s
/ build (nvim) (push) Successful in 1s
/ report-size (push) Successful in 4s
Otherwise it causes massive rebuilds T-T
This commit is contained in:
parent
6c02c01db6
commit
f7cb80e451
3 changed files with 8 additions and 19 deletions
|
@ -1,23 +1,10 @@
|
||||||
{ inputs, ... }:
|
{ inputs, ... }:
|
||||||
{
|
{
|
||||||
# Add unstable packages to overlay
|
# Add unstable packages to overlay
|
||||||
flake.overlays.unstable =
|
flake.overlays.unstable = final: prev: {
|
||||||
final: prev:
|
unstable = inputs.unstable.legacyPackages.${prev.stdenv.hostPlatform.system};
|
||||||
let
|
|
||||||
unstablePkgs = inputs.unstable.legacyPackages.${prev.stdenv.hostPlatform.system};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
# Get unstable packages
|
|
||||||
unstable = unstablePkgs;
|
|
||||||
|
|
||||||
# Update vim plugins with the versions from unstable
|
# use unstable vimPlugins
|
||||||
vimPlugins = prev.vimPlugins // unstablePkgs.vimPlugins;
|
vimPlugins = prev.vimPlugins // final.unstable.vimPlugins;
|
||||||
|
|
||||||
# Get specific packages from unstable
|
|
||||||
inherit (unstablePkgs)
|
|
||||||
gitoxide
|
|
||||||
jujutsu
|
|
||||||
;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,7 +118,7 @@ in
|
||||||
packages = [
|
packages = [
|
||||||
pkgs.gopass
|
pkgs.gopass
|
||||||
pkgs.sshfs
|
pkgs.sshfs
|
||||||
pkgs.gitoxide
|
pkgs.unstable.gitoxide
|
||||||
];
|
];
|
||||||
# Extra variables
|
# Extra variables
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
|
@ -196,6 +196,7 @@ in
|
||||||
# Jujutsu (alternative DVCS (git-compatible))
|
# Jujutsu (alternative DVCS (git-compatible))
|
||||||
jujutsu = {
|
jujutsu = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.unstable.jujutsu;
|
||||||
settings = {
|
settings = {
|
||||||
ui.pager = "bat";
|
ui.pager = "bat";
|
||||||
# mimic git commit --verbose by adding a diff
|
# mimic git commit --verbose by adding a diff
|
||||||
|
|
|
@ -9,6 +9,7 @@ in
|
||||||
(import ./standalone.nix)
|
(import ./standalone.nix)
|
||||||
(lib.mkIf cfg.enable {
|
(lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
nixpkgs.useGlobalPackages = true;
|
||||||
defaultEditor = lib.mkDefault true;
|
defaultEditor = lib.mkDefault true;
|
||||||
jhome.nvim = cfg;
|
jhome.nvim = cfg;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue