flake-managed zsh plugins
This commit is contained in:
parent
ced0bbf2a9
commit
1432ea461c
3 changed files with 88 additions and 39 deletions
70
flake.lock
generated
70
flake.lock
generated
|
|
@ -116,7 +116,11 @@
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"neovim-nightly": "neovim-nightly",
|
"neovim-nightly": "neovim-nightly",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"secrets": "secrets"
|
"secrets": "secrets",
|
||||||
|
"zsh-abbr": "zsh-abbr",
|
||||||
|
"zsh-fast-syntax-highlighting": "zsh-fast-syntax-highlighting",
|
||||||
|
"zsh-history-substring-search": "zsh-history-substring-search",
|
||||||
|
"zsh-pure": "zsh-pure"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"secrets": {
|
"secrets": {
|
||||||
|
|
@ -133,6 +137,70 @@
|
||||||
"repo": "flakes-secrets",
|
"repo": "flakes-secrets",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"zsh-abbr": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1619965311,
|
||||||
|
"narHash": "sha256-+oOk2ePd4/OjmRP245Kb5ku/R1PAQCI6IJth7GbcnwQ=",
|
||||||
|
"owner": "olets",
|
||||||
|
"repo": "zsh-abbr",
|
||||||
|
"rev": "99af0455b7b86ff3894a4bcf73380be2d595fa54",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "olets",
|
||||||
|
"repo": "zsh-abbr",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"zsh-fast-syntax-highlighting": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1621022231,
|
||||||
|
"narHash": "sha256-rHdOnA0Y/i/ISDlriGrGDXr5rD2nZ4T7iuG7PFUVIFQ=",
|
||||||
|
"owner": "zdharma",
|
||||||
|
"repo": "fast-syntax-highlighting",
|
||||||
|
"rev": "817916dfa907d179f0d46d8de355e883cf67bd97",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "zdharma",
|
||||||
|
"repo": "fast-syntax-highlighting",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"zsh-history-substring-search": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1557707754,
|
||||||
|
"narHash": "sha256-Ptxik1r6anlP7QTqsN1S2Tli5lyRibkgGlVlwWZRG3k=",
|
||||||
|
"owner": "zsh-users",
|
||||||
|
"repo": "zsh-history-substring-search",
|
||||||
|
"rev": "0f80b8eb3368b46e5e573c1d91ae69eb095db3fb",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "zsh-users",
|
||||||
|
"repo": "zsh-history-substring-search",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"zsh-pure": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1626016475,
|
||||||
|
"narHash": "sha256-6j6QZtsA5ZgfXthYjXRrND2zAJwZx0/6WRI1f3c+2mE=",
|
||||||
|
"owner": "sindresorhus",
|
||||||
|
"repo": "pure",
|
||||||
|
"rev": "f4c6d79ba2417d63c8008b6acce628631fd462ec",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "sindresorhus",
|
||||||
|
"repo": "pure",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,12 @@
|
||||||
|
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
neovim-nightly.inputs.nixpkgs.follows = "nixpkgs";
|
neovim-nightly.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
# zsh plugins
|
||||||
|
zsh-abbr = { url = "github:olets/zsh-abbr"; flake = false; };
|
||||||
|
zsh-history-substring-search = { url = "github:zsh-users/zsh-history-substring-search"; flake = false; };
|
||||||
|
zsh-fast-syntax-highlighting = { url = "github:zdharma/fast-syntax-highlighting"; flake = false; };
|
||||||
|
zsh-pure = { url = "github:sindresorhus/pure"; flake = false; };
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs: with inputs;
|
outputs = inputs: with inputs;
|
||||||
|
|
@ -52,6 +58,7 @@
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
|
extraSpecialArgs = { inherit inputs; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
@ -65,6 +72,7 @@
|
||||||
./hosts/winter
|
./hosts/winter
|
||||||
secrets.nixosModules.winter
|
secrets.nixosModules.winter
|
||||||
];
|
];
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
};
|
};
|
||||||
packages.x86_64-linux = customPackages nixpkgs.legacyPackages.x86_64-linux;
|
packages.x86_64-linux = customPackages nixpkgs.legacyPackages.x86_64-linux;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,13 @@
|
||||||
# vim: ft=nix
|
# vim: ft=nix
|
||||||
{ config, pkgs, ... }:
|
{ config, inputs, pkgs, ... }:
|
||||||
let
|
let
|
||||||
lib = pkgs.lib;
|
lib = pkgs.lib;
|
||||||
|
|
||||||
|
pluginFromInput = name: {
|
||||||
|
inherit name;
|
||||||
|
src = inputs.${name};
|
||||||
|
};
|
||||||
|
|
||||||
abbrs = {
|
abbrs = {
|
||||||
e = "$EDITOR";
|
e = "$EDITOR";
|
||||||
rs = "source ~/.config/zsh/.zshrc";
|
rs = "source ~/.config/zsh/.zshrc";
|
||||||
|
|
@ -140,43 +145,11 @@ in rec {
|
||||||
viExtraNav
|
viExtraNav
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = [
|
plugins = builtins.map (e: pluginFromInput e) [
|
||||||
{
|
"zsh-abbr"
|
||||||
name = "zsh-abbr";
|
"zsh-history-substring-search"
|
||||||
src = pkgs.fetchFromGitHub {
|
"zsh-fast-syntax-highlighting"
|
||||||
owner = "olets";
|
"zsh-pure"
|
||||||
repo = "zsh-abbr";
|
|
||||||
rev = "99af0455b7b86ff3894a4bcf73380be2d595fa54";
|
|
||||||
sha256 = "014zvikfqqcv40x24h60ad3vyjz6kf9f7xhkk6iz7qyxwgcs90zs";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "zsh-history-substring-search";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "zsh-users";
|
|
||||||
repo = "zsh-history-substring-search";
|
|
||||||
rev = "0f80b8eb3368b46e5e573c1d91ae69eb095db3fb";
|
|
||||||
sha256 = "0y8va5kc2ram38hbk2cibkk64ffrabfv1sh4xm7pjspsba9n5p1y";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "fast-syntax-highlighting";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "zdharma";
|
|
||||||
repo = "fast-syntax-highlighting";
|
|
||||||
rev = "817916dfa907d179f0d46d8de355e883cf67bd97";
|
|
||||||
sha256 = "0m102makrfz1ibxq8rx77nngjyhdqrm8hsrr9342zzhq1nf4wxxc";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "pure";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "sindresorhus";
|
|
||||||
repo = "pure";
|
|
||||||
rev = "43aafe0b4dc05174c57ee623c03c64400e832ece";
|
|
||||||
sha256 = "0qfs7rvpyd8jb7x4ziqrkh0b6g9ldds8sn6qbqgrir80vdk90gpa";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue