Migrate to snowfall lib
This commit is contained in:
18
modules/home/cli/zsh/default.nix
Executable file
18
modules/home/cli/zsh/default.nix
Executable file
@ -0,0 +1,18 @@
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
nixflake_dir = "$HOME/files/nixconfig";
|
||||
nixflake_url = "git+https://git.helcel.net/sora/nixconfig";
|
||||
in {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
"sudo" = "sudo ";
|
||||
"devsh" =
|
||||
"nix develop --profile /tmp/devsh-env ${nixflake_url}#devsh -c zsh";
|
||||
"nixb" = "(sudo nixos-rebuild switch --flake ${nixflake_url})";
|
||||
"nixgc" = "sudo nix-collect-garbage -d && nix-collect-garbage -d";
|
||||
"ssh" = "TERM=xterm-256color ${pkgs.openssh}/bin/ssh";
|
||||
"top" = "btop";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user