From c1adb6c4b743973c7831e3307bcabd089476d927 Mon Sep 17 00:00:00 2001 From: albert <albert@sysctl.io> Date: Tue, 20 Feb 2024 11:04:49 +0900 Subject: [PATCH] Update alpha and tailscale includes --- .../common/software/cli/nixvim/alpha.nix | 60 +++++++++++++------ nixos/common/services/tailscale.nix | 4 +- 2 files changed, 44 insertions(+), 20 deletions(-) diff --git a/home-manager/common/software/cli/nixvim/alpha.nix b/home-manager/common/software/cli/nixvim/alpha.nix index 1a5df753..9238e977 100644 --- a/home-manager/common/software/cli/nixvim/alpha.nix +++ b/home-manager/common/software/cli/nixvim/alpha.nix @@ -21,10 +21,7 @@ hl = "Type"; }; } - { - type = "padding"; - val = 2; - } + { type = "padding"; val = 2; } { type = "group"; val = [ @@ -33,25 +30,52 @@ desc = " New file"; command = "<CMD>ene <CR>"; } + ]; + } + { type = "padding"; val = 1; } + { + type = "group"; + val = [ { - shortcut = "SPC q"; - desc = " Quit Neovim"; + shortcut = "f"; + desc = " Open File"; + command = ":Telescope find_files<CR>"; + } + ]; + } + { type = "padding"; val = 1; } + { + type = "group"; + val = [ + { + shortcut = "r"; + desc = " Recently Opened"; + command = ":Telescope oldfiles<CR>"; + } + ]; + } + { type = "padding"; val = 1; } + { + type = "group"; + val = [ + { + shortcut = "g"; + desc = " Find Word"; + command = ":Telescope live_grep<CR>"; + } + ]; + } + { type = "padding"; val = 1; } + { + type = "group"; + val = [ + { + shortcut = "q"; + desc = " Quit Neovim"; command = ":qa<CR>"; } ]; } - { - type = "padding"; - val = 2; - } - { - type = "text"; - val = "Inspiring quote here."; - opts = { - position = "center"; - hl = "Keyword"; - }; - } ]; }; } diff --git a/nixos/common/services/tailscale.nix b/nixos/common/services/tailscale.nix index a5f5e84b..2603747a 100644 --- a/nixos/common/services/tailscale.nix +++ b/nixos/common/services/tailscale.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: { +{ ... }: { # Enable tailscale and open port 22 on it services.tailscale = { enable = true; @@ -21,4 +21,4 @@ 100.64.0.14 influx.sysctl.io 100.64.0.14 loki.sysctl.io ''; -} \ No newline at end of file +}