diff --git a/common/dotfiles/bash.nix b/common/dotfiles/bash.nix index d333b293..43636ccb 100644 --- a/common/dotfiles/bash.nix +++ b/common/dotfiles/bash.nix @@ -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'"; }; }; }; diff --git a/desktops/sway.nix b/desktops/sway.nix new file mode 100644 index 00000000..7ea8b456 --- /dev/null +++ b/desktops/sway.nix @@ -0,0 +1,5 @@ +{ config, pkgs, unstable, ... }: { + programs.sway = { + enable = true; + }; +} \ No newline at end of file