update shellAliases

This commit is contained in:
do butterflies cry? 2026-03-07 13:17:58 +10:00
parent 61b531aa11
commit 60934bcbf4
2 changed files with 17 additions and 20 deletions

View file

@ -1,14 +1,9 @@
{
config,
inputs,
root,
...
}: {
home.username = "dea";
home.homeDirectory = "/home/dea";
home.sessionPath = [
"$HOME/.local/bin"
];
imports = [
inputs.plasma-manager.homeModules.plasma-manager
@ -18,6 +13,22 @@
/${root}/homes/modules/mpv
];
home.username = "dea";
home.homeDirectory = "/home/dea";
home.sessionPath = [
"$HOME/.local/bin"
];
home.shellAliases = {
eep = "systemctl suspend";
hibernate = "systemctl hybrid-sleep";
restart = "systemctl reboot";
shutdown = "systemctl poweroff";
vim = "dvim";
nvim = "dvim";
rebuild = "nh os switch ~/dea-files";
trybuild = "nh os test ~/dea-files";
};
programs.plasma = {
enable = true;
kwin.edgeBarrier = 50;

View file

@ -1,17 +1,3 @@
eval "$(starship init bash)"
alias eep='systemctl suspend'
alias hibernate='systemctl hybrid-sleep'
alias restart='systemctl reboot'
alias shutdown='systemctl poweroff'
alias vim='dvim'
alias nvim='dvim'
rebuild() {
if [ -z "$1" ]
then
sudo nixos-rebuild switch --flake ~/dea-files#"$(hostname)"
else
sudo nixos-rebuild switch --flake ~/dea-files#"$1"
fi
}
[ -f "/home/dea/.ghcup/env" ] && . "/home/dea/.ghcup/env" # ghcup-env