flake: remove bud

This commit is contained in:
Infinidoge 2023-07-27 15:44:06 -04:00
parent 44515ec81f
commit 2cc70a8c4a
10 changed files with 2 additions and 59 deletions

View file

@ -1,7 +0,0 @@
#!/usr/bin/env bash
attr="$FLAKEROOT#$HOST"
if [ -x /run/wrappers/bin/sudo ]; then
export PATH=/run/wrappers/bin:$PATH
fi
nixos-rebuild --flake "$attr" --use-remote-sudo "${@:-switch}"

View file

@ -1,28 +0,0 @@
{ pkgs, lib, budUtils, ... }: {
bud.cmds = with pkgs; {
up.enable = false;
b = {
writer = budUtils.writeBashWithPaths [ nixUnstable nixos-rebuild git coreutils mercurial ];
synopsis = "b (switch|boot|test)";
help = "Shortcut for nixos-rebuild using the current hostname";
script = ./b.bash;
};
gc = {
writer = budUtils.writeBashWithPaths [ nixUnstable ];
synopsis = "gc [-d]";
help = "Shortcut for nix-collect-garbage for both the user and root";
script = ./gc.bash;
};
install-doom = {
writer = budUtils.writeBashWithPaths [ git coreutils emacs ];
synopsis = "install-doom [ARGS]";
help = "Installs Doom Emacs from https://github.com/hlissner/doom-emacs";
script = ./install-doom.bash;
};
update.writer = lib.mkForce (budUtils.writeBashWithPaths [ nixUnstable git mercurial openssh ]);
};
}

View file

@ -1,7 +0,0 @@
#!/usr/bin/env bash
if [ -x /run/wrappers/bin/sudo ]; then
export PATH=/run/wrappers/bin:$PATH
fi
nix-collect-garbage "${@}"
sudo nix-collect-garbage "${@}"

View file

@ -1,8 +0,0 @@
#!/usr/bin/env bash
if [ ! -d $XDG_CONFIG_HOME/emacs ]; then
git clone --depth 1 https://github.com/hlissner/doom-emacs $XDG_CONFIG_HOME/emacs
$XDG_CONFIG_HOME/emacs/bin/doom install "$@"
else
echo "fatal: $XDG_CONFIG_HOME/emacs already exists!"
fi

View file

@ -1,8 +1,5 @@
{ self, inputs, ... }:
{
modules = with inputs; [
bud.devshellModules.bud
];
exportedModules = [
./devos.nix
];