Update bash inits

This commit is contained in:
iFargle 2023-07-07 07:33:18 +09:00
parent 2540979d82
commit 1447d163be
2 changed files with 19 additions and 3 deletions

View file

@ -5,10 +5,23 @@
bash = {
enable = true;
enableCompletion = true;
enableLsColors = true;
promptInit = ''
sops-edit() {
nix-shell -p sops --run "sops $1"
}
nix-clean-all() {
nix-channel --update
nix-env -u --always
nix-collect-garbage -d
nix-collect-garbage -d
}
'';
shellAliases = {
# Disable askpass for cli auth:
SSH_ASKPASS = "";
# docker
d = "docker";
dc = "docker-compose";
@ -43,8 +56,6 @@
nrt = "nixos-rebuild test";
nrb = "nixos-rebuild build";
# sops
sops = "nix-shell -p sops --run 'sops $0'";
};
};
};

5
desktops/sway.nix Normal file
View file

@ -0,0 +1,5 @@
{ config, pkgs, unstable, ... }: {
programs.sway = {
enable = true;
};
}