2023-05-16 13:03:08 +05:30
|
|
|
{ pkgs, ... }:
|
2022-03-28 00:10:28 +05:30
|
|
|
|
|
|
|
{
|
2022-05-14 11:56:43 +05:30
|
|
|
environment = {
|
|
|
|
shells = [ "${pkgs.fish}/bin/fish" "${pkgs.bash}/bin/bash" ];
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
fishPlugins.hydro
|
|
|
|
];
|
|
|
|
};
|
2022-03-28 00:10:28 +05:30
|
|
|
users.extraUsers.payas = { shell = "${pkgs.fish}/bin/fish"; };
|
|
|
|
|
|
|
|
programs.fish = {
|
|
|
|
enable = true;
|
2022-03-28 11:57:50 +05:30
|
|
|
vendor = {
|
|
|
|
completions.enable = true;
|
|
|
|
config.enable = true;
|
|
|
|
};
|
2022-05-14 11:54:37 +05:30
|
|
|
|
2022-04-24 16:19:13 +05:30
|
|
|
interactiveShellInit = ''
|
2022-06-04 23:40:21 +05:30
|
|
|
set -U fish_greeting
|
|
|
|
|
2022-04-24 16:19:13 +05:30
|
|
|
function ndiff -d "NixOS diff"
|
|
|
|
command nix store diff-closures /nix/var/nix/profiles/system-$argv[1]-link /nix/var/nix/profiles/system-$argv[2]-link
|
|
|
|
end
|
2022-05-14 11:54:37 +05:30
|
|
|
|
|
|
|
# Add doom-emacs to path
|
2023-04-16 19:15:37 +05:30
|
|
|
set -gx PATH ~/.config/emacs/bin/ $PATH
|
2023-05-16 13:03:08 +05:30
|
|
|
|
|
|
|
# Enable Atuin integration
|
|
|
|
atuin init --disable-up-arrow fish | source
|
2022-04-24 16:19:13 +05:30
|
|
|
'';
|
2022-05-14 11:54:37 +05:30
|
|
|
|
2022-03-28 00:10:28 +05:30
|
|
|
shellAbbrs = {
|
2022-05-03 22:38:05 +05:30
|
|
|
"mkbook" = "wget --recursive --level=5 --convert-links --page-requisites --wait=1 --random-wait --timestamping --no-parent";
|
2022-03-28 00:10:28 +05:30
|
|
|
"cdnix" = "cd /etc/nixos/";
|
|
|
|
"nfu" = "nix flake update";
|
2022-11-08 01:46:35 +05:30
|
|
|
"snfu" = "sudo nix flake update";
|
2022-03-28 00:10:28 +05:30
|
|
|
"nrb" = "sudo nixos-rebuild boot -v";
|
|
|
|
"nrs" = "sudo nixos-rebuild switch -v";
|
|
|
|
"nrso" = "sudo nixos-rebuild switch -v --offline";
|
|
|
|
"nes" = "sudo nix-env --profile /nix/var/nix/profiles/system";
|
|
|
|
"nesl" = "sudo nix-env --profile /nix/var/nix/profiles/system --list-generations";
|
|
|
|
"nesd" = "sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations";
|
2022-04-16 20:20:30 +05:30
|
|
|
"ness" = "sudo nix-env --profile /nix/var/nix/profiles/system --switch-generation";
|
|
|
|
"nesr" = "sudo nix-env --profile /nix/var/nix/profiles/system --rollback";
|
2022-04-20 19:13:47 +05:30
|
|
|
"ngc" = "sudo rm /nix/var/nix/gcroots/auto/*";
|
2022-03-28 00:10:28 +05:30
|
|
|
"ngl" = "nix registry list";
|
|
|
|
"ngpn" = "nix registry pin nixpkgs";
|
|
|
|
"ngrn" = "nix registry remove nixpkgs";
|
|
|
|
"nsr" = "nix-store --query --referrers";
|
|
|
|
"nsra" = "nix-store --query --referrers-closure";
|
|
|
|
"nss" = "ls -la /nix/store/ | rg";
|
|
|
|
"rmlock" = "rm /home/payas/.git/index.lock";
|
|
|
|
"ht" = "htop";
|
2022-03-31 18:40:45 +05:30
|
|
|
"gcl" = "git cl";
|
2022-03-28 00:10:28 +05:30
|
|
|
"gd" = "git diff";
|
2022-03-31 18:40:45 +05:30
|
|
|
"gl" = "git last";
|
2022-03-28 00:10:28 +05:30
|
|
|
"gpr" = "git pull --rebase origin master";
|
|
|
|
"gst" = "git status";
|
|
|
|
"gsh" = "git stash";
|
|
|
|
"gco" = "git checkout";
|
|
|
|
"l" = "ls -alh";
|
|
|
|
"ll" = "ls -l";
|
|
|
|
"ls" = "ls --color=tty";
|
2022-04-18 19:12:26 +05:30
|
|
|
"spc" = "df -t ext4 -t fuseblk -t ntfs -t vfat -t fat32 -t fat -h";
|
2022-03-28 00:10:28 +05:30
|
|
|
"rgi" = "rg -i";
|
|
|
|
"rgn" = "rg --no-ignore";
|
|
|
|
"rgni" = "rg --no-ignore -i";
|
|
|
|
"fdn" = "fd --no-ignore";
|
|
|
|
"ipa" = "ip -br -c a";
|
|
|
|
"soulseek" = "/run/current-system/sw/bin/SoulseekQt";
|
|
|
|
"dup" = "doom upgrade";
|
|
|
|
"dsy" = "doom sync";
|
2022-04-16 20:20:08 +05:30
|
|
|
"bebop" = "ssh payas@bebop";
|
2023-06-02 01:24:55 +05:30
|
|
|
"titan" = "ssh payas@titan";
|
|
|
|
"lapetus" = "ssh payas@lapetus";
|
2023-06-03 12:28:06 +05:30
|
|
|
"rhea" = "ssh payas@rhea";
|
2023-04-30 16:59:46 +05:30
|
|
|
"bbrb" = "sudo nixos-rebuild boot --flake .#bebop -v --target-host root@bebop";
|
|
|
|
"bbrs" = "sudo nixos-rebuild switch --flake .#bebop -v --target-host root@bebop";
|
2022-05-19 23:12:07 +05:30
|
|
|
"bkp" = "emacs --script ~/org/elisp-fu/bkp.el";
|
2022-09-23 11:28:13 +05:30
|
|
|
"mid" = "mu index";
|
2022-03-28 00:10:28 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|