feat: shell stuff
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,3 +2,5 @@
|
|||||||
|
|
||||||
*.tfstate
|
*.tfstate
|
||||||
*.tfstate.*
|
*.tfstate.*
|
||||||
|
|
||||||
|
.direnv
|
||||||
|
18
flake.nix
18
flake.nix
@@ -37,7 +37,12 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, unstable, nixos-apple-silicon, home-manager
|
outputs = { self, nixpkgs, unstable, nixos-apple-silicon, home-manager
|
||||||
, plasma-manager, nixvim, sops-nix, terranix, ... }: {
|
, plasma-manager, nixvim, sops-nix, terranix, ... }:
|
||||||
|
let
|
||||||
|
forAllSystems = function:
|
||||||
|
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed
|
||||||
|
(system: function nixpkgs.legacyPackages.${system});
|
||||||
|
in {
|
||||||
|
|
||||||
packages.aarch64-linux =
|
packages.aarch64-linux =
|
||||||
let
|
let
|
||||||
@@ -123,5 +128,16 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
devShells = forAllSystems (pkgs: {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = with pkgs; [
|
||||||
|
age
|
||||||
|
ssh-to-age
|
||||||
|
sops
|
||||||
|
just
|
||||||
|
];
|
||||||
|
};
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -20,7 +20,13 @@
|
|||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = 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.name = "KoonFamily";
|
||||||
oauth.secrets = import ./oauth-secrets.nix;
|
oauth.secrets = import ./oauth-secrets.nix;
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
owner = "k2on";
|
owner = "k2on";
|
||||||
repo = "wakapi";
|
repo = "wakapi";
|
||||||
rev = "koon-fork";
|
rev = "koon-fork";
|
||||||
hash = "sha256-Gg2YXhPBoIVv+8yV5gz2NTCNFo8V9fNJxqjdkwo6Zf0=";
|
hash = "sha256-FYGtoJmbqUD02/JKvON1RqpjkrDkAOkfPwMAUZ2MSE4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-912x6LwitYXdjWpP75Xoc56JXadeLQZuESSyLoaJcU0=";
|
vendorHash = "sha256-912x6LwitYXdjWpP75Xoc56JXadeLQZuESSyLoaJcU0=";
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
time.timeZone = "America/New_York";
|
time.timeZone = "America/New_York";
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
|
||||||
|
|
||||||
# security.sudo.wheelNeedsPassword = false;
|
# security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
@@ -38,7 +38,19 @@
|
|||||||
dotDir = ".config/zsh";
|
dotDir = ".config/zsh";
|
||||||
autocd = true;
|
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 = {
|
shellAliases = {
|
||||||
ll = "ls -la --color";
|
ll = "ls -la --color";
|
||||||
@@ -46,7 +58,8 @@
|
|||||||
vi = "nvim";
|
vi = "nvim";
|
||||||
vim = "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";
|
tt = "tt --theme one-light -n 10";
|
||||||
|
|
||||||
@@ -58,11 +71,20 @@
|
|||||||
docx-to-pdf = "libreoffice --headless --convert-to pdf";
|
docx-to-pdf = "libreoffice --headless --convert-to pdf";
|
||||||
};
|
};
|
||||||
|
|
||||||
plugins = [{
|
plugins = [
|
||||||
|
{
|
||||||
name = "vi-mode";
|
name = "vi-mode";
|
||||||
src = pkgs.zsh-vi-mode;
|
src = pkgs.zsh-vi-mode;
|
||||||
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
|
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; };
|
programs.starship = { enable = true; };
|
||||||
|
Reference in New Issue
Block a user