feat: shell stuff
This commit is contained in:
@@ -20,7 +20,13 @@
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "ark"; # Define your hostname.
|
||||
networking.hostName = "ark";
|
||||
networking.nameservers = [ "8.8.8.8" "1.1.1.1" ];
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
useRoutingFeatures = "both";
|
||||
extraUpFlags = [ "--accept-dns=false" ];
|
||||
};
|
||||
|
||||
oauth.name = "KoonFamily";
|
||||
oauth.secrets = import ./oauth-secrets.nix;
|
||||
|
@@ -14,7 +14,7 @@
|
||||
owner = "k2on";
|
||||
repo = "wakapi";
|
||||
rev = "koon-fork";
|
||||
hash = "sha256-Gg2YXhPBoIVv+8yV5gz2NTCNFo8V9fNJxqjdkwo6Zf0=";
|
||||
hash = "sha256-FYGtoJmbqUD02/JKvON1RqpjkrDkAOkfPwMAUZ2MSE4=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-912x6LwitYXdjWpP75Xoc56JXadeLQZuESSyLoaJcU0=";
|
||||
|
@@ -1,8 +1,6 @@
|
||||
{ inputs, ... }: {
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
# security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
@@ -38,7 +38,19 @@
|
||||
dotDir = ".config/zsh";
|
||||
autocd = true;
|
||||
|
||||
# initExtra = builtins.readFile ./zsh-nix-shell.zsh;
|
||||
initContent = ''
|
||||
fzf-project() {
|
||||
selected=$(find ~/dev -mindepth 2 -maxdepth 2 | sed 's|/home/max/dev/||' | fzf --delimiter '/' --nth 2)
|
||||
if [[ -n $selected ]]; then
|
||||
cd ~/dev/$selected
|
||||
zle reset-prompt
|
||||
fi
|
||||
zle redisplay
|
||||
}
|
||||
|
||||
zle -N fzf-project
|
||||
bindkey '^G' fzf-project
|
||||
'';
|
||||
|
||||
shellAliases = {
|
||||
ll = "ls -la --color";
|
||||
@@ -46,7 +58,8 @@
|
||||
vi = "nvim";
|
||||
vim = "nvim";
|
||||
|
||||
k = "kubectl";
|
||||
p = "pnpm";
|
||||
g = "pnpm run build && ~/dev/personal/genesis/packages/genesis/dist/bin.js";
|
||||
|
||||
tt = "tt --theme one-light -n 10";
|
||||
|
||||
@@ -58,11 +71,20 @@
|
||||
docx-to-pdf = "libreoffice --headless --convert-to pdf";
|
||||
};
|
||||
|
||||
plugins = [{
|
||||
name = "vi-mode";
|
||||
src = pkgs.zsh-vi-mode;
|
||||
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
|
||||
}];
|
||||
plugins = [
|
||||
{
|
||||
name = "vi-mode";
|
||||
src = pkgs.zsh-vi-mode;
|
||||
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
nix-direnv.enable = true;
|
||||
silent = true;
|
||||
};
|
||||
|
||||
programs.starship = { enable = true; };
|
||||
|
Reference in New Issue
Block a user