diff --git a/extras/dev.nix b/extras/dev.nix index 6c57d0e..9893802 100644 --- a/extras/dev.nix +++ b/extras/dev.nix @@ -158,8 +158,18 @@ services.udev.extraRules = '' SUBSYSTEM == "tty", GROUP="dialout", ATTRS{interface}=="Black Magic GDB Server", SYMLINK+="ttyBmpGdb" SUBSYSTEM == "tty", GROUP="dialout", ATTRS{interface}=="Black Magic UART Port", SYMLINK+="ttyBmpTarg" + + # mobili + KERNEL=="js[0-9]*", MODE="0666" ''; + boot.kernel.sysctl = { + "net.core.rmem_max" = 67108864; + "net.core.wmem_max" = 67108864; + "net.core.rmem_max_default" = 67108864; + "net.core.wmem_max_default" = 67108864; + }; + virtualisation.docker = { daemon.settings = { features.buildkit = true; diff --git a/flake.lock b/flake.lock index 79427b4..07dd841 100644 --- a/flake.lock +++ b/flake.lock @@ -169,11 +169,11 @@ "rust-overlay": "rust-overlay" }, "locked": { - "lastModified": 1778169829, - "narHash": "sha256-p9CY3iCpTIzIDAnGv6cp+/ckRqs1G5wFSZcUtiEaM6Y=", + "lastModified": 1778551011, + "narHash": "sha256-woJV7tJwwzjR0xWDNuGpwMENe/OEMAdSGg+nqWs9tUE=", "owner": "helix-editor", "repo": "helix", - "rev": "7d92fbdadf3cdadd5d0d1e27c234c10b74c6613c", + "rev": "8c41b11607924f7584b77c8a6e6b16439a2f559f", "type": "github" }, "original": { @@ -210,11 +210,11 @@ ] }, "locked": { - "lastModified": 1778144356, - "narHash": "sha256-dGM+QCstz/DyLB68+JK5GWyMx4QSqmOJEVgZmy63d/g=", + "lastModified": 1778681890, + "narHash": "sha256-RK4sTgei29wBzLu+e4ljeixKutWhbMygFsdxdFKpZOU=", "owner": "nix-community", "repo": "home-manager", - "rev": "e4419d3123b780d5f4c0bceeace450424387638c", + "rev": "7654d90b94bab7eba3a52fd6f73b3f5a4c544fa2", "type": "github" }, "original": { @@ -288,11 +288,11 @@ }, "nixos": { "locked": { - "lastModified": 1778003029, - "narHash": "sha256-q/nkKLDtHIyLjZpKhWk3cSK5IYsFqtMd6UtXF3ddjgA=", + "lastModified": 1778430510, + "narHash": "sha256-Ti+ZBvW6yrWWAg2szExVTwCd4qOJ3KlVr1tFHfyfi8Q=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "0c88e1f2bdb93d5999019e99cb0e61e1fe2af4c5", + "rev": "8fd9daa3db09ced9700431c5b7ad0e8ba199b575", "type": "github" }, "original": { @@ -319,11 +319,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1778143761, - "narHash": "sha256-lkesY6x2X2qxlqLM7CT2iM/0rP2JB7fruPN3h8POXmI=", + "lastModified": 1778593042, + "narHash": "sha256-xYGrSg6354UK2K4WSQd4+TfyvfqmvFbSY+ZtGQUXK0c=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "3bcaa367d4c550d687a17ac792fd5cda214ee871", + "rev": "9bd7c80d43e258aaa607d83b43661df11444d808", "type": "github" }, "original": { @@ -427,11 +427,11 @@ }, "nixpkgs_4": { "locked": { - "lastModified": 1777954456, - "narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=", + "lastModified": 1778443072, + "narHash": "sha256-zi7/fsqM/kFdNuED//4WOCUtezGtKKqRNORjMvfwjnA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1", + "rev": "da5ad661ba4e5ef59ba743f0d112cbc30e474f32", "type": "github" }, "original": { @@ -501,11 +501,11 @@ ] }, "locked": { - "lastModified": 1778218381, - "narHash": "sha256-mhxT7KkmM0h/vgr84o2p6gkzm21b5/dCnIMVKaoXU+I=", + "lastModified": 1778585655, + "narHash": "sha256-yfxy9aTlIgU2Z36H8cJURgYLgjT4qvFeOzoAC/HXcKM=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "ea79f20a194de74504821ab53e93c0cf92690f00", + "rev": "42f41abcef13dc81c85407b57aa1fd1bde46e46c", "type": "github" }, "original": { diff --git a/users/tao/helix.nix b/users/tao/helix.nix index ba326a4..b7b4390 100644 --- a/users/tao/helix.nix +++ b/users/tao/helix.nix @@ -251,6 +251,11 @@ # keep-sorted end ]; language-server = { + nil = { + config = { + autoArchive = true; + }; + }; deno-lsp = { command = "deno"; args = ["lsp"]; diff --git a/users/tao/nushell/completions/completions-docker.nu b/users/tao/nushell/completions/completions-docker.nu new file mode 100644 index 0000000..e8e02cc --- /dev/null +++ b/users/tao/nushell/completions/completions-docker.nu @@ -0,0 +1,7 @@ +export def "nu-complete docker start" [] { + docker ps --all --format json | from json --objects | select Names Image | rename value description +} + +export extern "docker start" [ + ...recipe: string@"nu-complete docker start" +] diff --git a/users/tao/nushell/config.nu b/users/tao/nushell/config.nu index 0c08cc8..23b2d54 100644 --- a/users/tao/nushell/config.nu +++ b/users/tao/nushell/config.nu @@ -12,6 +12,7 @@ use tailscale.nu * source completions-jj.nu source completions-just.nu +source completions-docker.nu # External completer example # let carapace_completer = {|spans| diff --git a/users/tao/nushell/extras/tailscale.nu b/users/tao/nushell/extras/tailscale.nu index fa8e8d9..83eb48a 100644 --- a/users/tao/nushell/extras/tailscale.nu +++ b/users/tao/nushell/extras/tailscale.nu @@ -13,7 +13,7 @@ export def check-mullvad [] { } # switch to a specific exit node, or none -export def te [exit_node: string = ""] { +export def te [exit_node: string = "", -n] { if ($exit_node | is-empty) and (ps | find deluge | is-not-empty) { print "stop summoning first!" return false @@ -21,7 +21,7 @@ export def te [exit_node: string = ""] { tailscale set --exit-node $exit_node - if ($exit_node | is-not-empty) { + if ($exit_node | is-not-empty) or not $n { check-mullvad } else { print "exit node set"