use Nix to handle mypkgs submodule
This commit is contained in:
parent
e2c7c58239
commit
fb7b811b82
|
@ -1,3 +0,0 @@
|
|||
[submodule "mypkgs"]
|
||||
path = mypkgs
|
||||
url = https://github.com/arielherself/mypkgs
|
|
@ -4,7 +4,12 @@
|
|||
|
||||
let
|
||||
unstable = import <nixos-unstable> { config = { allowUnfree = true; }; };
|
||||
mypkgs = import ../mypkgs/default.nix;
|
||||
mypkgs = import (pkgs.fetchFromGitHub {
|
||||
owner = "arielherself";
|
||||
repo = "mypkgs";
|
||||
rev = "75f9b72";
|
||||
hash = "sha256-vlfIPxOJ/wxlpLrOIUrxISzysFZ+kZ2nE/ELU2IaJqg=";
|
||||
});
|
||||
in {
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
|
@ -118,6 +123,7 @@ in {
|
|||
# Networking
|
||||
pkgs.wireshark
|
||||
# pkgs.clash-verge-rev
|
||||
mypkgs.aria2
|
||||
|
||||
# Editor
|
||||
unstable.neovim
|
||||
|
@ -296,6 +302,7 @@ in {
|
|||
'';
|
||||
initExtra = ''
|
||||
me() { mkdir -p "$1" && cd "$1" }
|
||||
unsetopt pathdirs
|
||||
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
||||
source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh
|
||||
source ${config.xdg.configHome}/p10k/p10k.zsh
|
||||
|
|
1
mypkgs
1
mypkgs
|
@ -1 +0,0 @@
|
|||
Subproject commit 17af77d44389e7e74f8f82dbc920acb81990e849
|
|
@ -135,19 +135,19 @@ local plugins = {
|
|||
opts = {},
|
||||
config = function(_, opts) require'lsp_signature'.setup(opts) end
|
||||
},
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
init = function()
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 300
|
||||
end,
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
}
|
||||
},
|
||||
-- {
|
||||
-- "folke/which-key.nvim",
|
||||
-- event = "VeryLazy",
|
||||
-- init = function()
|
||||
-- vim.o.timeout = true
|
||||
-- vim.o.timeoutlen = 300
|
||||
-- end,
|
||||
-- opts = {
|
||||
-- -- your configuration comes here
|
||||
-- -- or leave it empty to use the default settings
|
||||
-- -- refer to the configuration section below
|
||||
-- }
|
||||
-- },
|
||||
{
|
||||
'jdhao/better-escape.vim' -- `jk` without causing `j` to have delay
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue