all repos — dotfiles @ 725af00f59e8c41c32affa430b3ea8c50f283efa

my *nix dotfiles

all: too much to type
Anirudh Oppiliappan x@icyphox.sh
Sun, 13 Nov 2022 17:57:27 +0530
commit

725af00f59e8c41c32affa430b3ea8c50f283efa

parent

e85d1606045c9f78fb3f642345ec3b87458f1abb

A config/nvim/ftplugin/javascript.vim

@@ -0,0 +1,1 @@

+setlocal ts=2 sts=2 sw=2 expandtab
A config/nvim/ftplugin/typescript.vim

@@ -0,0 +1,1 @@

+setlocal ts=2 sts=2 sw=2 expandtab
M config/nvim/lua/fzy/buffers.luaconfig/nvim/lua/fzy/buffers.lua

@@ -8,7 +8,6 @@

-- list of buffers local nbuf = fn.range(1, fn.bufnr('$')) - local winid = fn.win_getid() -- filter out buffers that don't have 'buflisted' set for _, n in ipairs(nbuf) do if fn.buflisted(n) then

@@ -17,14 +16,14 @@ end

end -- write buffer names to file to feed to fzy - local buffile = fn.tempname() + local buffile = fn.tempname() local f = io.open(buffile, "a") for b, _ in pairs(buffers) do f:write(b, '\n') end f:close() - fzy_cmd = { + local fzy_cmd = { 'fzy -p "buf > " ', '< ' .. buffile, }
M nix/flake.locknix/flake.lock

@@ -7,11 +7,11 @@ "nixpkgs"

] }, "locked": { - "lastModified": 1662478528, - "narHash": "sha256-Myjd0HPL5lXri3NXOcJ6gP7IKod2eMweQBKM4uxgEGw=", + "lastModified": 1666519227, + "narHash": "sha256-z74lSCJE5BzxCeE2r9FU4tvHkQXQyz70zmJ3coLP10w=", "owner": "lnl7", "repo": "nix-darwin", - "rev": "3b69bf3cc26ae19de847bfe54d6ab22d7381a90a", + "rev": "8be7f197120739b3ec15f994bdc48116726c6159", "type": "github" }, "original": {

@@ -61,11 +61,11 @@ }

}, "flake-utils": { "locked": { - "lastModified": 1644229661, - "narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=", + "lastModified": 1659877975, + "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", "owner": "numtide", "repo": "flake-utils", - "rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797", + "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", "type": "github" }, "original": {

@@ -81,11 +81,11 @@ "nixpkgs"

] }, "locked": { - "lastModified": 1656169755, - "narHash": "sha256-Nlnm4jeQWEGjYrE6hxi/7HYHjBSZ/E0RtjCYifnNsWk=", + "lastModified": 1665996265, + "narHash": "sha256-/k9og6LDBQwT+f/tJ5ClcWiUl8kCX5m6ognhsAxOiCY=", "owner": "nix-community", "repo": "home-manager", - "rev": "4a3d01fb53f52ac83194081272795aa4612c2381", + "rev": "b81e128fc053ab3159d7b464d9b7dedc9d6a6891", "type": "github" }, "original": {

@@ -102,11 +102,11 @@ "neovim-flake": "neovim-flake",

"nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1662883732, - "narHash": "sha256-Ks5dwSJpv3SY+6PgOsTmrv9SHaKO7IkMEwsM/0g0BFc=", + "lastModified": 1666599634, + "narHash": "sha256-lIm4OWasAiB1aPw8nRHpZwjjrvGc1ued3oZ/3Ey6qMg=", "owner": "icyphox", "repo": "neovim-nightly-overlay", - "rev": "ca0121aeaf350454f0c978b2214cf0243dde2eb4", + "rev": "b6d74e921962ba7637ed04a1635f5730ae0e6b11", "type": "github" }, "original": {

@@ -125,11 +125,11 @@ ]

}, "locked": { "dir": "contrib", - "lastModified": 1662857789, - "narHash": "sha256-nPdjRQxH31YvGIQu7jJZoWRj8KFLZ5ryVyA5VSjTLW4=", + "lastModified": 1666596900, + "narHash": "sha256-GlJohATL4oqniHmyHqDUKo/lECNN/BULDleEJ0Q2ap4=", "owner": "neovim", "repo": "neovim", - "rev": "9b4cab012662514af6fda3648d544633e1d73d4b", + "rev": "29fe3348ba126a334d7e6f06a66f14ec3110d02f", "type": "github" }, "original": {

@@ -141,11 +141,11 @@ }

}, "nixos-hardware": { "locked": { - "lastModified": 1662714967, - "narHash": "sha256-IOTq5tAGGmBFj7tQbkcyLE261JUeTUucEE3p0WLZ4qM=", + "lastModified": 1665987993, + "narHash": "sha256-MvlaIYTRiqefG4dzI5p6vVCfl+9V8A1cPniUjcn6Ngc=", "owner": "nixos", "repo": "nixos-hardware", - "rev": "1fec8fda86dac5701146c77d5f8a414b14ed1ff6", + "rev": "0e6593630071440eb89cd97a52921497482b22c6", "type": "github" }, "original": {

@@ -156,11 +156,11 @@ }

}, "nixpkgs": { "locked": { - "lastModified": 1662732537, - "narHash": "sha256-iqxa+38SRU+SwNsKDyP8rZt79yPFGSgTe+K4Ujbb/uw=", + "lastModified": 1666447894, + "narHash": "sha256-i9WHX4w/et4qPMzEXd9POmnO0/bthjr7R4cblKNHGms=", "owner": "nixos", "repo": "nixpkgs", - "rev": "74a1793c659d09d7cf738005308b1f86c90cb59b", + "rev": "95aeaf83c247b8f5aa561684317ecd860476fcd6", "type": "github" }, "original": {

@@ -172,11 +172,11 @@ }

}, "nixpkgs_2": { "locked": { - "lastModified": 1662732537, - "narHash": "sha256-iqxa+38SRU+SwNsKDyP8rZt79yPFGSgTe+K4Ujbb/uw=", + "lastModified": 1666539104, + "narHash": "sha256-jeuC+d375wHHxMOFLgu7etseCQVJuPNKoEc9X9CsErg=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "74a1793c659d09d7cf738005308b1f86c90cb59b", + "rev": "0e6df35f39651504249a05191f9a78d251707e22", "type": "github" }, "original": {
M nix/flake.nixnix/flake.nix

@@ -44,9 +44,9 @@ darwinConfigurations = {

syl = darwin.lib.darwinSystem { system = "x86_64-darwin"; modules = [ - { - imports = [ ./hosts/syl/configuration.nix ]; - _module.args.self = self; + { + imports = [ ./hosts/syl/configuration.nix ]; + _module.args.self = self; } home-manager.darwinModules.home-manager {
M nix/home.nixnix/home.nix

@@ -12,6 +12,11 @@ ./programs

./services ]; + fonts.fontconfig.enable = true; + + # XXX: remove this + manual.manpages.enable = false; + home.stateVersion = "22.05"; home.username = "icy"; home.homeDirectory = "/home/icy";

@@ -29,6 +34,7 @@ ffmpeg

wget tree mpv + noto-fonts-cjk noto-fonts-emoji jq yq-go

@@ -41,9 +47,10 @@ signal-desktop

calibre pinentry kontact - trojita korganizer + kmail libreoffice-qt + akonadi ] ++ (import ./bin { inherit pkgs host; });
M nix/hosts/wyndle/configuration.nixnix/hosts/wyndle/configuration.nix

@@ -131,6 +131,7 @@ };

sound.enable = true; hardware = { + opengl.driSupport = true; bluetooth = { enable = true; powerOnBoot = true;

@@ -234,7 +235,7 @@ gamemode.enable = true;

}; nix = { - package = pkgs.nixFlakes; + package = pkgs.nixVersions.stable; extraOptions = '' experimental-features = nix-command flakes ca-derivations warn-dirty = false
M nix/programs/common.nixnix/programs/common.nix

@@ -22,6 +22,24 @@ enableBashIntegration = true;

nix-direnv = { enable = true; }; + stdlib = '' + layout_poetry() { + if [[ ! -f pyproject.toml ]]; then + log_error 'No pyproject.toml found. Use `poetry new` or `poetry init` to create one first.' + exit 2 + fi + + local VENV=$(poetry env list --full-path | cut -d' ' -f1) + if [[ -z $VENV || ! -d $VENV/bin ]]; then + log_error 'No poetry virtual environment found. Use `poetry install` to create one first.' + exit 2 + fi + + export VIRTUAL_ENV=$VENV + export POETRY_ACTIVE=1 + PATH_add "$VENV/bin" + } + ''; }; zoxide = { enable = true;
M nix/programs/neovim.nixnix/programs/neovim.nix

@@ -19,6 +19,7 @@ nodePackages.vscode-langservers-extracted

nodePackages.typescript-language-server nodePackages.typescript nodePackages.eslint + nodePackages.pyright sumneko-lua-language-server ]; extraConfig = ''