nix/common/home-manager/home.nix

76 lines
2.4 KiB
Nix

{ config, pkgs, ... }:
{
home = {
shellAliases = {
".." = "cd ..";
"..." = "cd ../..";
"...." = "cd ../../..";
"....." = "cd ../../../..";
o = "${pkgs.xdg-utils}/bin/xdg-open";
ncdu = "${pkgs.ncdu}/bin/ncdu --color dark";
config = "vim /etc/nixos/configuration/main.nix";
hmconf = "vim /etc/nixos/common/home-manager/main.nix";
hmhconf = "vim /etc/nixos/common/home-manager/home.nix";
switch = "sudo nixos-rebuild switch";
nr = "nix run --impure";
ns = "nix-shell";
nsp = "nix-shell -p";
cdnix = "cd /etc/nixos";
pvim = "${pkgs.poetry}/bin/poetry run vim";
ga = "${pkgs.git}/bin/git add";
gb = "${pkgs.git}/bin/git branch";
gba = "${pkgs.git}/bin/git branch -a";
gbd = "${pkgs.git}/bin/git branch -d";
gc = "${pkgs.git}/bin/git commit";
gca = "${pkgs.git}/bin/git commit --amend";
gcan = "${pkgs.git}/bin/git commit --amend --no-edit";
gcl = "${pkgs.git}/bin/git clone";
gcm = "${pkgs.git}/bin/git commit -m";
gco = "${pkgs.git}/bin/git checkout";
gcob = "${pkgs.git}/bin/git checkout -b";
gcom = "${pkgs.git}/bin/git remote show origin | sed -n '/HEAD branch/s/.*: //p' | xargs git checkout";
gf = "${pkgs.git}/bin/git fetch";
gfp = "${pkgs.git}/bin/git fetch --prune";
gl = "${pkgs.git}/bin/git pull";
glr = "${pkgs.git}/bin/git pull --rebase";
gla = "${pkgs.git}/bin/git pull --autostash";
glra = "${pkgs.git}/bin/git pull --rebase --autostash";
gp = "${pkgs.git}/bin/git push";
gpf = "${pkgs.git}/bin/git push --force-with-lease";
gr = "${pkgs.git}/bin/git reset";
grs = "${pkgs.git}/bin/git reset --soft";
gs = "${pkgs.git}/bin/git stash";
gsa = "${pkgs.git}/bin/git stash apply";
gsp = "${pkgs.git}/bin/git stash pop";
gst = "${pkgs.git}/bin/git status";
tigs = "${pkgs.tig}/bin/tig status";
oath = "${pkgs.yubikey-manager}/bin/ykman oath accounts code";
pc = "${pkgs.podman-compose}/bin/podman-compose";
pce = "${pkgs.podman-compose}/bin/podman-compose exec";
pclf = "${pkgs.podman-compose}/bin/podman-compose logs --tail 100 -f";
pr = "${pkgs.poetry}/bin/poetry run";
};
pointerCursor = {
name = "Adwaita";
package = pkgs.gnome.adwaita-icon-theme;
size = 24;
x11 = {
enable = true;
defaultCursor = "Adwaita";
};
};
};
}