1
Fork 0

feat: failed direnv attempt ig

This commit is contained in:
Matei Adriel 2022-04-05 21:17:08 +03:00
parent 79b65f3640
commit 830e4ade9d
6 changed files with 37 additions and 33 deletions

View file

@ -8,9 +8,9 @@ Table of my own keybinds. Here as documentation for myself. I am yet to include
> (aka all the keys need to be pressed at the same time) > (aka all the keys need to be pressed at the same time)
| Keybind | Description | Plugins | | Keybind | Description | Plugins |
| ---------------- | ------------------------------------------- | ------------------ | | ------------ | ------------------------------------------- | ------------------ |
| vv | Create vertical split | | | vv | Create vertical split | |
| \<Space>\<Space> | Save | | | _jl_ | Save | |
| _jk_ | Exit insert mode | | | _jk_ | Exit insert mode | |
| _\<leader>k_ | Insert digraph | | | _\<leader>k_ | Insert digraph | |
| _\<leader>a_ | Swap last 2 used buffers | | | _\<leader>a_ | Swap last 2 used buffers | |
@ -47,7 +47,7 @@ The default brackets I load in each buffer are (), [], "", '', {} and \`\`. Diff
| \<leader>s | Show symbols using tree-sitter | | | \<leader>s | Show symbols using tree-sitter | |
| \<leader>gj | List git commits | | | \<leader>gj | List git commits | |
| \<leader>gk | List git branches | | | \<leader>gk | List git branches | |
| \<leader>p | Interactive file broswer | telescope-file-browser | | _jp_ | Interactive file broswer | telescope-file-browser |
| _ui_ | Insert unicode char | | | _ui_ | Insert unicode char | |
### Idris ### Idris

View file

@ -26,7 +26,7 @@ local bindings = {
git_commits = "<Leader>gj", git_commits = "<Leader>gj",
git_branches = "<Leader>gk" git_branches = "<Leader>gk"
}, },
["extensions.file_browser.file_browser"] = "<Leader>p", ["extensions.file_browser.file_browser"] = {chord = 1, key = "jp"},
extensions = { extensions = {
unicode = { unicode = {
picker = {mode = "i", kind = "dropdown", key = "ui", chord = 1} picker = {mode = "i", kind = "dropdown", key = "ui", chord = 1}

View file

@ -383,7 +383,7 @@
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs-unstable"
] ]
}, },
"locked": { "locked": {

View file

@ -8,7 +8,7 @@
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs-unstable";
}; };
# keyboard layout configuration # keyboard layout configuration

View file

@ -3,8 +3,6 @@
home-manager.users.adrielus = { home-manager.users.adrielus = {
programs.direnv.enable = true; programs.direnv.enable = true;
programs.direnv.nix-direnv.enable = true; programs.direnv.nix-direnv.enable = true;
# optional for nix flakes support in home-manager 21.11, not required in home-manager unstable or 22.05
programs.direnv.nix-direnv.enableFlakes = true; programs.direnv.nix-direnv.enableFlakes = true;
}; };
} }

View file

@ -1,13 +1,19 @@
{ pkgs, ... }: { { pkgs, ... }: {
nix = { nix = {
trustedUsers = [ "root" "adrielus" "@wheel" ];
autoOptimiseStore = true;
optimise.automatic = true;
gc.automatic = false;
# Emanble nix flakes # Emanble nix flakes
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
trustedUsers = [ "root" "adrielus" "@wheel" ];
autoOptimiseStore = true;
optimise.automatic = true;
gc.automatic = true;
# Protect nix-shell from garbage collection
# TODO: look into whether this is still needed when using nix flakes
extraOptions = '' extraOptions = ''
keep-outputs = true
keep-derivations = true
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';