tabbing to vim, fix tabs in nvim.nix, probably some other stuff idk

This commit is contained in:
Anish L 2022-02-26 00:04:20 +10:00
parent ebb1c5875b
commit ddae5aed03
8 changed files with 235 additions and 255 deletions

View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1638319138, "lastModified": 1643841757,
"narHash": "sha256-ve33f4nTKQluyvm5URQwL019x0Fnrg8urqzvymNeD+s=", "narHash": "sha256-9tKhu4JzoZvustC9IEWK6wKcDhPLuK/ICbLgm8QnLnk=",
"owner": "ryantm", "owner": "ryantm",
"repo": "agenix", "repo": "agenix",
"rev": "52ea2f8c3231cc2b5302fa28c63588aacb77ea29", "rev": "a17d1f30550260f8b45764ddbd0391f4b1ed714a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -27,11 +27,11 @@
"poetry2nix": "poetry2nix" "poetry2nix": "poetry2nix"
}, },
"locked": { "locked": {
"lastModified": 1630693543, "lastModified": 1641830469,
"narHash": "sha256-7Sly3ReaJZw60Qo0rpfN4jF6zy94nwQz6ENgUUFzJfg=", "narHash": "sha256-uhDmgNP/biOWe4FtOa6c2xZnREH+NP9rdrMm0LccRUk=",
"owner": "lovesegfault", "owner": "lovesegfault",
"repo": "beautysh", "repo": "beautysh",
"rev": "5609593961b70428f58d5c1b4b25cdda43b0d0bd", "rev": "e85d9736927c0fcf2abb05cb3a2d8d9b4502a2eb",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -67,11 +67,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1633877936, "lastModified": 1642035816,
"narHash": "sha256-+o3n6s7fR8dBGRldTGelyp2j3jSyTlrniOXwNfmMG20=", "narHash": "sha256-1Lq5c1AeUv/1SK08+O704JVfDdD/zodHzA0cv0TIga8=",
"owner": "divnix", "owner": "divnix",
"repo": "bud", "repo": "bud",
"rev": "15df091133ff95216c321b09be04905c0a0944c4", "rev": "a789d710851441ba7e7cd59be378623b1fe05688",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -87,11 +87,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1634994402, "lastModified": 1645007752,
"narHash": "sha256-xmlCVVOYGpZoxgOqsDOVF0B0ASrnbNGVAEzID9qh2xo=", "narHash": "sha256-FQZMiVP/1vgR7x+TWonMf0NZczrZ4ZjhSTj3rM+kglY=",
"owner": "LnL7", "owner": "LnL7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "44da835ac40dab5fd231298b59d83487382d2fab", "rev": "c944b5ee82a829ddf7fa6bd9300bc2fe3d005fa1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -110,11 +110,11 @@
"utils": "utils" "utils": "utils"
}, },
"locked": { "locked": {
"lastModified": 1638318651, "lastModified": 1639771334,
"narHash": "sha256-YsYBMa8Chtb6ccGZOVStReiZ33ZNmi7kNPLf/Ua2kY8=", "narHash": "sha256-4hgZmsCPaL5QlcEijHmzaYYrEwHtUFqraCUrCqLGJOo=",
"owner": "input-output-hk", "owner": "input-output-hk",
"repo": "deploy-rs", "repo": "deploy-rs",
"rev": "1d3a4f4681a98479219c628165bb6b3a12eae843", "rev": "7267eab9139ca4476fd8ed49e2e8652bba4c037f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -145,7 +145,6 @@
"deploy" "deploy"
], ],
"devshell": "devshell", "devshell": "devshell",
"flake-utils": "flake-utils_3",
"flake-utils-plus": "flake-utils-plus", "flake-utils-plus": "flake-utils-plus",
"home-manager": [ "home-manager": [
"home" "home"
@ -160,11 +159,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1638227261, "lastModified": 1643510242,
"narHash": "sha256-CbleULqH3NRnnLdwqHqi0qk1sEmhyXE8ZOzjofilGM4=", "narHash": "sha256-9C9DyJhQ5bevk0CEEjGct+U9EqUgHg8T70nxz47zjMI=",
"owner": "divnix", "owner": "divnix",
"repo": "digga", "repo": "digga",
"rev": "1ce6cef4230f82cb986ef3d08d57a2e3a0e6e80d", "rev": "33bfb05b8a148d8ad6a842de74e22209bf9fe5d7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -179,11 +178,11 @@
"rust-analyzer-src": "rust-analyzer-src" "rust-analyzer-src": "rust-analyzer-src"
}, },
"locked": { "locked": {
"lastModified": 1637303083, "lastModified": 1639117493,
"narHash": "sha256-e2A5JBjxYNpjoGd53K0oVUUaS9ojwOT5rnThyPNS46M=", "narHash": "sha256-67H9uXUdauaqMfkcKzpgHR3GeOKPAwOs6G3C1VpT67o=",
"owner": "nix-community", "owner": "nix-community",
"repo": "fenix", "repo": "fenix",
"rev": "8294ceadbbbe1a886640bfcc15f5a02a2b471955", "rev": "94b5686cad2ed210da106b0b7e1e212dab43fbf2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -226,11 +225,11 @@
}, },
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1623875721, "lastModified": 1631561581,
"narHash": "sha256-A8BU7bjS5GirpAUv4QA+QnJ4CceLHkcXdRp4xITDB0s=", "narHash": "sha256-3VQMV5zvxaVLvqqUrNz3iJelLw30mIVSfZmAaauM3dA=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "f7e004a55b120c02ecb6219596820fcd32ca8772", "rev": "7e5bf3925f6fbdfaf50a2a7ca0be2879c4261d19",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -241,29 +240,29 @@
}, },
"flake-utils-plus": { "flake-utils-plus": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_4" "flake-utils": "flake-utils_3"
}, },
"locked": { "locked": {
"lastModified": 1630859749, "lastModified": 1639385028,
"narHash": "sha256-qkoU2rIbbP2+T0dfcqXW35GCWNsi0Y1IgN9BELmt4Zo=", "narHash": "sha256-oqorKz3mwf7UuDJwlbCEYCB2LfcWLL0DkeCWhRIL820=",
"owner": "divnix", "owner": "gytis-ivaskevicius",
"repo": "flake-utils-plus", "repo": "flake-utils-plus",
"rev": "a4e267e3fc87e60c5029c6c3855935ff1ff3018e", "rev": "be1be083af014720c14f3b574f57b6173b4915d0",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "divnix", "owner": "gytis-ivaskevicius",
"repo": "flake-utils-plus", "repo": "flake-utils-plus",
"type": "github" "type": "github"
} }
}, },
"flake-utils_2": { "flake-utils_2": {
"locked": { "locked": {
"lastModified": 1638122382, "lastModified": 1644229661,
"narHash": "sha256-sQzZzAbvKEqN9s0bzWuYmRaA03v40gaJ4+iL1LXjaeI=", "narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "74f7e4319258e287b0f9cb95426c9853b282730b", "rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -302,21 +301,6 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_5": {
"locked": {
"lastModified": 1631561581,
"narHash": "sha256-3VQMV5zvxaVLvqqUrNz3iJelLw30mIVSfZmAaauM3dA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "7e5bf3925f6fbdfaf50a2a7ca0be2879c4261d19",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"home": { "home": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -324,11 +308,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1638267006, "lastModified": 1643933536,
"narHash": "sha256-heZdDlD09rnoeEiZ4wKfbXNDkO5I9qVFvX9d790h/XE=", "narHash": "sha256-yRmsWAG4DnLxLIUtlaZsl0kH7rN5xSoyNRlf0YZrcH4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "3e93c4e8b2b479c712b7c20a428993b459118842", "rev": "2860d7e3bb350f18f7477858f3513f9798896831",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -356,11 +340,11 @@
}, },
"latest_2": { "latest_2": {
"locked": { "locked": {
"lastModified": 1638376152, "lastModified": 1644525281,
"narHash": "sha256-ucgLpVqhFnClH7YRUHBHnmiOd82RZdFR3XJt36ks5fE=", "narHash": "sha256-D3VuWLdnLmAXIkooWAtbTGSQI9Fc1lkvAr94wTxhnTU=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6daa4a5c045d40e6eae60a3b6e427e8700f1c07f", "rev": "48d63e924a2666baf37f4f14a18f19347fbd54a2",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -377,11 +361,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1638203339, "lastModified": 1639947939,
"narHash": "sha256-Sz3iCvbWrVWOD/XfYQeRJgP/7MVYL3/VKsNXvDeWBFc=", "narHash": "sha256-pGsM8haJadVP80GFq4xhnSpNitYNQpaXk4cnA796Cso=",
"owner": "nmattia", "owner": "nmattia",
"repo": "naersk", "repo": "naersk",
"rev": "c3e56b8a4ffb6d906cdfcfee034581f9a8ece571", "rev": "2fc8ce9d3c025d59fee349c1f80be9785049d653",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -392,11 +376,11 @@
}, },
"nixlib": { "nixlib": {
"locked": { "locked": {
"lastModified": 1638059559, "lastModified": 1641688481,
"narHash": "sha256-cCGV2TCDLN+iwHxoplk4uZOvc7TqdlsW5nBVcu943IU=", "narHash": "sha256-6L+EU12xLDHby7y8elgFtRKVBxix+7qV8DhVgXqrKZo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs.lib", "repo": "nixpkgs.lib",
"rev": "44e0fa2ab408508a60dd4f213d75fd0c64262dde", "rev": "f697717b3d3a074ffc16c8c8227504f0db292886",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -407,11 +391,11 @@
}, },
"nixos": { "nixos": {
"locked": { "locked": {
"lastModified": 1638442392, "lastModified": 1645043747,
"narHash": "sha256-6FFbew4MfkdwcdM8Tzpm91uxBJsGKFZHkFDiDPKlgdM=", "narHash": "sha256-HjepP5RqpkPR5N1k1GnYmekYjZKqhVjYec1G6W/ZLz4=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6525c02d2b1692a3bcd457ff8943ce55b9c129da", "rev": "62a2a1be29f6a3356e72d87970da4c396ac8d08f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -442,11 +426,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1638440530, "lastModified": 1644870092,
"narHash": "sha256-kmoNW+RmSka988iWvSrkiAxO8g6D76O0gW2cIIhL6U8=", "narHash": "sha256-RLPD92lqXW98LDIbbwYqwAbt3R4iD1V1PiylfgBq5cU=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "4c9f07277bd4bc29a051ff2a0ca58c6403e3881a", "rev": "10eab1c4cd8e715c0b41d32c28af2b89fc67bed0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -457,11 +441,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1638565206, "lastModified": 1633971123,
"narHash": "sha256-5z7RBRw0qh3REJieanK3PkMHl0EuzZr2efZqAz44Bjg=", "narHash": "sha256-WmI4NbH1IPGFWVkuBkKoYgOnxgwSfWDgdZplJlQ93vA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f9a1652a858329525c143450db2474ef439cf6c1", "rev": "e4ef597edfd8a0ba5f12362932fc9b1dd01a0aef",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -473,11 +457,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1638585354, "lastModified": 1645098413,
"narHash": "sha256-wzt6GBJNriOPEeHSZ6SdmESBmAZYlXPIFbVjZjRqsGc=", "narHash": "sha256-kROvsEv0t0zhl1c57ELsFr0Bkq90VOnQtIdNY8OHZ2U=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "77dc4eecc2c8c9b99f9715224f3ff139cfe5dea4", "rev": "0e6dd09d2420ff6d6c084e2e1a14c3404d871421",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -488,11 +472,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1636976544, "lastModified": 1638986258,
"narHash": "sha256-9ZmdyoRz4Qu8bP5BKR1T10YbzcB9nvCeQjOEw2cRKR0=", "narHash": "sha256-OceRdctKZRSgqQxVRvvNB0MaEnFMzQqjUffecoDE9eI=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "931ab058daa7e4cd539533963f95e2bb0dbd41e6", "rev": "581d2d6c9cd5c289002203581d8aa0861963a933",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -504,11 +488,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1638432899, "lastModified": 1644972330,
"narHash": "sha256-iZ+rgyRx3JVyylXYxSyW01liDWEn+O8cKnin6cMzOFU=", "narHash": "sha256-6V2JFpTUzB9G+KcqtUR1yl7f6rd9495YrFECslEmbGw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "56cbe42f1668338d05febfbb866e32f2c865609a", "rev": "19574af0af3ffaf7c9e359744ed32556f34536bd",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -534,17 +518,17 @@
"nvfetcher": { "nvfetcher": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": "flake-compat_2",
"flake-utils": "flake-utils_5", "flake-utils": "flake-utils_4",
"nixpkgs": [ "nixpkgs": [
"nixos" "nixos"
] ]
}, },
"locked": { "locked": {
"lastModified": 1634524567, "lastModified": 1644123018,
"narHash": "sha256-v9ZTZj1WNQaaVfs1P1mUPuh518mmwpqszj1EjdeGUmc=", "narHash": "sha256-xEhhLmuy4FnT4Zdkf3epPX9T3xqn59yERCsicG4IEyM=",
"owner": "berberman", "owner": "berberman",
"repo": "nvfetcher", "repo": "nvfetcher",
"rev": "807513f4bbd0e3b5863f4c3b91f8ac846ed6da9b", "rev": "9f2cb15c4668859312b6a854d79ad753d5b98b03",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -559,11 +543,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1625240517, "lastModified": 1633382856,
"narHash": "sha256-2E1gaOP+bCplhf3kliVQWK5N1NV2h06mkJk2KTiRTJQ=", "narHash": "sha256-hYlet806M9xJj4yxf0g5fhDT2IEUVIMAl7sqIeZ8DUM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "poetry2nix", "repo": "poetry2nix",
"rev": "e40e8ed0e8c11e709e4c8c7c20174facd265a021", "rev": "705cbfa10e3d9bfed2e59e0256844ae3704dbd7e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -591,11 +575,11 @@
"rust-analyzer-src": { "rust-analyzer-src": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1637268320, "lastModified": 1639071661,
"narHash": "sha256-lxB1r+7cmZisiGLx0tZ2LaC6X/EcQTbRIWZfnLIIgs4=", "narHash": "sha256-4YySLORuK0qGGIEJj78S7CZ4jy4GIHJ5ks17k5AWblo=",
"owner": "rust-analyzer", "owner": "rust-analyzer",
"repo": "rust-analyzer", "repo": "rust-analyzer",
"rev": "f0da9406bcbde1bc727242b481d8de825e84f59a", "rev": "2534b7db1a093543d5bd759b3a1ca9e34418fa31",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -44,8 +44,6 @@
# keyMap = "us"; # keyMap = "us";
# }; # };
services.xserver.layout = "us,dvorak";
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;

View file

@ -17,6 +17,9 @@
programs.adb.enable = true; programs.adb.enable = true;
#virtualisation.docker.enable = true; #virtualisation.docker.enable = true;
services.udev.extraRules = '' services.udev.extraRules = ''
# Monitor plugged in
KERNEL=="card0", SUBSYSTEM=="drm", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/anish/.Xauthority", RUN+="/home/anish/bin/hotplug-monitor.sh" # TODO: add this file to nix home-manager
# Qualcomm EDL # Qualcomm EDL
SUBSYSTEMS=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9008", MODE="0666", GROUP="plugdev" SUBSYSTEMS=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9008", MODE="0666", GROUP="plugdev"

View file

@ -118,7 +118,8 @@ in
srch = "ns nixos"; srch = "ns nixos";
orch = "ns override"; orch = "ns override";
nrb = ifSudo "sudo nixos-rebuild switch --flake '/etc/nixos/#curve'"; nrb = ifSudo "sudo nixos-rebuild switch --flake '/etc/nixos/#curve'";
nedit = "vim /etc/nixos/"; nedit = "cd /etc/nixos; vim";
ncd = "cd /etc/nixos";
mn = '' mn = ''
manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | sk --preview="manix '{}'" | xargs manix manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | sk --preview="manix '{}'" | xargs manix
''; '';

View file

@ -1,12 +1,12 @@
{ {
networking.extraHosts = '' networking.extraHosts = ''
10.0.69.4 mossnet.lan 192.168.1.240 mossnet.lan
10.0.69.4 links.mossnet.lan 192.168.1.240 links.mossnet.lan
10.0.69.4 read.mossnet.lan 192.168.1.240 read.mossnet.lan
10.0.69.4 stats.mossnet.lan 192.168.1.240 stats.mossnet.lan
''; '';
#172.16.11.240 mossnet.lan #10.0.69.4 mossnet.lan
#172.16.11.240 links.mossnet.lan #10.0.69.4 links.mossnet.lan
#172.16.11.240 read.mossnet.lan #10.0.69.4 read.mossnet.lan
#172.16.11.240 stats.mossnet.lan #10.0.69.4 stats.mossnet.lan
} }

View file

@ -2,68 +2,68 @@
let let
customPlugins = { customPlugins = {
vim-zettel = pkgs.vimUtils.buildVimPlugin { vim-zettel = pkgs.vimUtils.buildVimPlugin {
name = "vim-zettel"; name = "vim-zettel";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "michal-h21"; owner = "michal-h21";
repo = "vim-zettel"; repo = "vim-zettel";
rev = "929d90eec62e6f693c2702d2b6f76a93f2f1689d"; rev = "929d90eec62e6f693c2702d2b6f76a93f2f1689d";
sha256 = "1fzKmknfVlEYwqeXgbKITbb2/PJ023iJyMz6vak3qh4="; sha256 = "1fzKmknfVlEYwqeXgbKITbb2/PJ023iJyMz6vak3qh4=";
}; };
}; };
vimwiki-dev = pkgs.vimUtils.buildVimPlugin { vimwiki-dev = pkgs.vimUtils.buildVimPlugin {
name = "vimwiki-dev"; name = "vimwiki-dev";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "vimwiki"; owner = "vimwiki";
repo = "vimwiki"; repo = "vimwiki";
rev = "d035a3428c6343b4f218e51340ddf690ad8c57ee"; rev = "d035a3428c6343b4f218e51340ddf690ad8c57ee";
sha256 = "000000000000000000000000PJ023iJyMz6vak3qh4="; sha256 = "000000000000000000000000PJ023iJyMz6vak3qh4=";
}; };
}; };
taskwiki-t = pkgs.vimUtils.buildVimPluginFrom2Nix { taskwiki-t = pkgs.vimUtils.buildVimPluginFrom2Nix {
pname = "taskwiki"; pname = "taskwiki";
version = "2021-09-22"; version = "2021-09-22";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "tools-life"; owner = "tools-life";
repo = "taskwiki"; repo = "taskwiki";
rev = "c4392c36c01cfffcb06f460d722990b98bc53bdb"; rev = "c4392c36c01cfffcb06f460d722990b98bc53bdb";
sha256 = "QrxFqu/Y6FykXGqIlK52+nDwmnBhubURl6v2Zc/KwPw="; sha256 = "QrxFqu/Y6FykXGqIlK52+nDwmnBhubURl6v2Zc/KwPw=";
}; };
meta.homepage = "https://github.com/tools-life/taskwiki/"; meta.homepage = "https://github.com/tools-life/taskwiki/";
}; };
}; };
my-python-packages = python-packages: with python-packages; [ my-python-packages = python-packages: with python-packages; [
tasklib tasklib
pynvim pynvim
six six
#pyls-mypy #pyls-mypy
#pyls-isort #pyls-isort
#pyls-black #pyls-black
# other python packages you want # other python packages you want
]; ];
python-with-my-packages = pkgs.python3.withPackages my-python-packages; python-with-my-packages = pkgs.python3.withPackages my-python-packages;
in in
{ {
environment.variables.EDITOR = "nvim"; environment.variables.EDITOR = "nvim";
environment.shellAliases = { environment.shellAliases = {
k = "vim -c :VimwikiIndex"; k = "vim -c :VimwikiIndex";
kz = "vim -c :VimwikiIndex -c :ZettelNew"; kz = "vim -c :VimwikiIndex -c :ZettelNew";
}; };
environment.systemPackages = with pkgs // customPlugins; [ environment.systemPackages = with pkgs // customPlugins; [
nodejs nodejs
python-with-my-packages python-with-my-packages
clojure-lsp clojure-lsp
rnix-lsp rnix-lsp
#python3Packages.pynvim #python3Packages.pynvim
#python3Packages.six #python3Packages.six
#python3Packages.tasklib #python3Packages.tasklib
#python3 #python3
( neovim.override { ( neovim.override {
vimAlias = true; vimAlias = true;
withPython3 = true; withPython3 = true;
extraPython3Packages = pkgs: with pkgs; [ tasklib six ]; extraPython3Packages = pkgs: with pkgs; [ tasklib six ];
configure = { configure = {
packages.myPlugins = with pkgs.vimPlugins; { packages.myPlugins = with pkgs.vimPlugins; {
start = [ start = [
vim-nix vim-nix
@ -78,7 +78,7 @@ in
vimwiki vimwiki
coc-nvim coc-nvim
coc-json coc-json
ale ale
coc-pyright coc-pyright
coc-pairs coc-pairs
coc-emmet coc-emmet
@ -87,6 +87,7 @@ in
rainbow_parentheses-vim rainbow_parentheses-vim
vim-surround vim-surround
vim-fugitive vim-fugitive
vim-signify
#nvim-colorizer #nvim-colorizer
vim-devicons vim-devicons
# testing # testing
@ -95,46 +96,51 @@ in
taskwiki taskwiki
vim-zettel vim-zettel
#vimwiki-sync #vimwiki-sync
telescope-nvim telescope-nvim
plenary-nvim plenary-nvim
# Clojure stuff # Clojure stuff
conjure conjure
vim-sexp vim-sexp
vim-sexp-mappings-for-regular-people vim-sexp-mappings-for-regular-people
]; ];
}; };
customRC = ''
set tabstop=2
set showmatch
set shiftwidth=2
set noexpandtab
set autoindent
" set foldmethod=indent " fold based on indent customRC = ''
set number set tabstop=2
set nocompatible set showmatch
set relativenumber set shiftwidth=2
set showtabline=2 set noexpandtab
set autowriteall set autoindent
" set foldmethod=indent " fold based on indent
set number
set nocompatible
set relativenumber
set showtabline=2
set noexpandtab
set autowriteall
syntax on syntax on
set list lcs=tab:\|\ set list lcs=tab:\|\
filetype plugin on filetype plugin on
set termguicolors set termguicolors
let ayucolor="mirage" let ayucolor="mirage"
colorscheme ayu colorscheme ayu
" set spell " set spell
set spelllang=en_gb set spelllang=en_gb
" window " window
nmap <leader>wh :topleft vnew<CR> nmap <leader>wh :topleft vnew<CR>
nmap <leader>wl :botright vnew<CR> nmap <leader>wl :botright vnew<CR>
nmap <leader>wk :topleft new<CR> nmap <leader>wk :topleft new<CR>
nmap <leader>wj :botright new<CR> nmap <leader>wj :botright new<CR>
" tabs
nmap <leader>rt :retab!<CR>
let mapleader = "\<Space>" let mapleader = "\<Space>"
let maplocalleader = "," let maplocalleader = ","
" lightline colorscheme " lightline colorscheme
let g:lightline = { let g:lightline = {
@ -157,49 +163,49 @@ in
:nnoremap <F5> "=strftime("%Y-%m-%d %H:%M:") :nnoremap <F5> "=strftime("%Y-%m-%d %H:%M:")
:inoremap <F5> <C-R>=strftime("%Y-%m-%d %H:%M:") :inoremap <F5> <C-R>=strftime("%Y-%m-%d %H:%M:")
" telescope " telescope
" Find files using Telescope command-line sugar. " Find files using Telescope command-line sugar.
nnoremap <leader>ff <cmd>Telescope find_files<cr> nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr> nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr> nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr> nnoremap <leader>fh <cmd>Telescope help_tags<cr>
" exit normal mode in terminal " exit normal mode in terminal
:tnoremap <C-n> <C-\><C-n> :tnoremap <C-n> <C-\><C-n>
let g:syntastic_always_populate_loc_list = 1 let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1 let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1 let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0 let g:syntastic_check_on_wq = 0
" Sexp in Conjure (since it's fennel) " Sexp in Conjure (since it's fennel)
" let g:sexp_filetypes = [ "fennel" ] " let g:sexp_filetypes = [ "fennel" ]
let g:rainbow_active = 0 let g:rainbow_active = 0
autocmd BufReadPost,BufNewFile c,py,nix RainbowParenthesesToggleAll autocmd BufReadPost,BufNewFile c,py,nix RainbowParenthesesToggleAll
" keyboard commands " keyboard commands
map <leader>t :NERDTreeToggle<CR> map <leader>t :NERDTreeToggle<CR>
map <leader>s :w<CR> map <leader>s :w<CR>
map <leader>q :wq<CR> map <leader>q :wq<CR>
map <leader>r :RainbowParenthesesToggleAll<CR> map <leader>r :RainbowParenthesesToggleAll<CR>
map <leader>zs :ZettelSearch<CR> map <leader>zs :ZettelSearch<CR>
map <leader>zo :ZettelOpen<CR> map <leader>zo :ZettelOpen<CR>
map <leader>zn :ZettelNew<CR> map <leader>zn :ZettelNew<CR>
" NERDTree " NERDTree
" open on directory " open on directory
autocmd StdinReadPre * let s:std_in=1 autocmd StdinReadPre * let s:std_in=1
" ALE + clj-kondo " ALE + clj-kondo
let g:ale_linters = {'clojure': ['clj-kondo']} let g:ale_linters = {'clojure': ['clj-kondo']}
" coc " coc
" "
" conjure extension " conjure extension
let g:coc_global_extensions = ['coc-conjure'] let g:coc_global_extensions = ['coc-conjure']
" if hidden is not set, TextEdit might fail. " if hidden is not set, TextEdit might fail.
set hidden set hidden
@ -220,24 +226,12 @@ in
" always show signcolumns " always show signcolumns
set signcolumn=yes set signcolumn=yes
" note that if you are using Plug mapping you should not use `noremap` mappings. " note that if you are using Plug mapping you should not use `noremap` mappings.
nmap <F5> <Plug>(lcn-menu) nmap <F5> <Plug>(lcn-menu)
" Or map each action separately " Or map each action separately
nmap <silent>K <Plug>(lcn-hover) nmap <silent>K <Plug>(lcn-hover)
nmap <silent> gd <Plug>(lcn-definition) nmap <silent> gd <Plug>(lcn-definition)
nmap <silent> <F2> <Plug>(lcn-r nmap <silent> <F2> <Plug>(lcn-r
" COC INSTALL
{
"languageserver": {
"nix": {
"command": "rnix-lsp",
"filetypes": [
"nix"
]
}
}
}
" Use tab for trigger completion with characters ahead and navigate. " Use tab for trigger completion with characters ahead and navigate.
" Use command ':verbose imap <tab>' to make sure tab is not mapped by other plugin. " Use command ':verbose imap <tab>' to make sure tab is not mapped by other plugin.
@ -249,7 +243,7 @@ in
function! s:check_back_space() abort function! s:check_back_space() abort
let col = col('.') - 1 let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s' return !col || getline('.')[col - 1] =~# '\s'
endfunction endfunction
" Use <c-space> to trigger completion. " Use <c-space> to trigger completion.
@ -289,8 +283,8 @@ in
nmap <leader>rn <Plug>(coc-rename) nmap <leader>rn <Plug>(coc-rename)
" Remap for format selected region " Remap for format selected region
xmap <leader>f <Plug>(coc-format-selected) xmap <leader>f <Plug>(coc-format-selected)
nmap <leader>f <Plug>(coc-format-selected) nmap <leader>f <Plug>(coc-format-selected)
augroup mygroup augroup mygroup
autocmd! autocmd!
@ -301,8 +295,8 @@ in
augroup end augroup end
" Remap for do codeAction of selected region, ex: `<leader>aap` for current paragraph " Remap for do codeAction of selected region, ex: `<leader>aap` for current paragraph
xmap <leader>a <Plug>(coc-codeaction-selected) xmap <leader>a <Plug>(coc-codeaction-selected)
nmap <leader>a <Plug>(coc-codeaction-selected) nmap <leader>a <Plug>(coc-codeaction-selected)
" Remap for do codeAction of current line " Remap for do codeAction of current line
nmap <leader>ac <Plug>(coc-codeaction) nmap <leader>ac <Plug>(coc-codeaction)
@ -323,38 +317,38 @@ in
command! -nargs=0 Format :call CocAction('format') command! -nargs=0 Format :call CocAction('format')
" Use `:Fold` to fold current buffer " Use `:Fold` to fold current buffer
command! -nargs=? Fold :call CocAction('fold', <f-args>) command! -nargs=? Fold :call CocAction('fold', <f-args>)
" use `:OR` for organize import of current buffer " use `:OR` for organize import of current buffer
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport') command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
" Add status line support, for integration with other plugin, checkout `:h coc-status` " Add status line support, for integration with other plugin, checkout `:h coc-status`
" set statusline^=%{coc#status()}%{get(b:,'coc_current_function',"")} " set statusline^=%{coc#status()}%{get(b:,'coc_current_function',"")}
" Using CocList " Using CocList
" Show all diagnostics " Show all diagnostics
nnoremap <silent> <space>a :<C-u>CocList diagnostics<cr> nnoremap <silent> <space>a :<C-u>CocList diagnostics<cr>
" Manage extensions " Manage extensions
nnoremap <silent> <space>e :<C-u>CocList extensions<cr> nnoremap <silent> <space>e :<C-u>CocList extensions<cr>
" Show commands " Show commands
nnoremap <silent> <space>c :<C-u>CocList commands<cr> nnoremap <silent> <space>c :<C-u>CocList commands<cr>
" Find symbol of current document " Find symbol of current document
nnoremap <silent> <space>o :<C-u>CocList outline<cr> nnoremap <silent> <space>o :<C-u>CocList outline<cr>
" Search workspace symbols " Search workspace symbols
nnoremap <silent> <space>s :<C-u>CocList -I symbols<cr> nnoremap <silent> <space>s :<C-u>CocList -I symbols<cr>
" Do default action for next item. " Do default action for next item.
nnoremap <silent> <space>j :<C-u>CocNext<CR> nnoremap <silent> <space>j :<C-u>CocNext<CR>
" Do default action for previous item. " Do default action for previous item.
nnoremap <silent> <space>k :<C-u>CocPrev<CR> nnoremap <silent> <space>k :<C-u>CocPrev<CR>
" Resume latest coc list " Resume latest coc list
nnoremap <silent> <space>p :<C-u>CocListResume<CR> nnoremap <silent> <space>p :<C-u>CocListResume<CR>
au BufNewFile,BufRead *.frag,*.vert,*.fp,*.vp,*.glsl setf glsl au BufNewFile,BufRead *.frag,*.vert,*.fp,*.vp,*.glsl setf glsl
" TODO Ugly map " TODO Ugly map
:map <F7> :!xclip -i<CR><CR> :map <F7> :!xclip -i<CR><CR>
:vmap <F7> "*y :vmap <F7> "*y
:map <S-F7> :r!xclip -o<CR> :map <S-F7> :r!xclip -o<CR>
''; '';
}; };
} }

View file

@ -52,6 +52,7 @@ in
scrot scrot
ripcord ripcord
feh feh
xkblayout-state
mupdf mupdf
sublime-music sublime-music
vcv-rack vcv-rack
@ -85,6 +86,7 @@ in
}; };
xserver = { xserver = {
enable = true; enable = true;
layout = "us,dvorak";
desktopManager.wallpaper.mode = "fill"; desktopManager.wallpaper.mode = "fill";
displayManager = { displayManager = {
defaultSession = "none+bspwm"; defaultSession = "none+bspwm";

View file

@ -27,10 +27,6 @@ super + grave
super + shift + grave super + shift + grave
emacsclient --eval "(open-scratch-frame)" emacsclient --eval "(open-scratch-frame)"
# Invoke emacs-everywhere at point.
super + e
emacsclient --eval "(emacs-everywhere)"
super + space super + space
rofi -show drun -modi drun,run -show-icons -theme theme/appmenu.rasi rofi -show drun -modi drun,run -show-icons -theme theme/appmenu.rasi
@ -49,6 +45,8 @@ super + s
super + Escape super + Escape
pkill -USR1 -x sxhkd pkill -USR1 -x sxhkd
super + n
xkblayout-state set +1
# #
## ##