flake: remove bud
This commit is contained in:
parent
44515ec81f
commit
2cc70a8c4a
10 changed files with 2 additions and 59 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,7 +1,6 @@
|
||||||
result
|
result
|
||||||
.direnv
|
.direnv
|
||||||
|
|
||||||
# Result of bud commands
|
|
||||||
vm
|
vm
|
||||||
iso
|
iso
|
||||||
doi
|
doi
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
outputs =
|
outputs =
|
||||||
{ self
|
{ self
|
||||||
, digga
|
, digga
|
||||||
, bud
|
|
||||||
, nixos
|
, nixos
|
||||||
, home
|
, home
|
||||||
, agenix
|
, agenix
|
||||||
|
@ -117,7 +116,6 @@
|
||||||
digga.nixosModules.nixConfig
|
digga.nixosModules.nixConfig
|
||||||
home.nixosModules.home-manager
|
home.nixosModules.home-manager
|
||||||
agenix.nixosModules.age
|
agenix.nixosModules.age
|
||||||
bud.nixosModules.bud
|
|
||||||
./secrets
|
./secrets
|
||||||
|
|
||||||
private.nixosModules.networking
|
private.nixosModules.networking
|
||||||
|
@ -178,9 +176,5 @@
|
||||||
|
|
||||||
homeConfigurations = digga.lib.mkHomeConfigurations self.nixosConfigurations;
|
homeConfigurations = digga.lib.mkHomeConfigurations self.nixosConfigurations;
|
||||||
}
|
}
|
||||||
//
|
|
||||||
{
|
|
||||||
budModules = { devos = import ./shell/bud; };
|
|
||||||
}
|
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,8 +50,6 @@ in
|
||||||
|
|
||||||
environment.variables = mkAliasDefinitions options.env;
|
environment.variables = mkAliasDefinitions options.env;
|
||||||
|
|
||||||
bud.localFlakeClone = config.dotfiles.dir;
|
|
||||||
|
|
||||||
secrets = mapAttrs (n: v: v.path) config.age.secrets;
|
secrets = mapAttrs (n: v: v.path) config.age.secrets;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
bud.enable = true;
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
# Enable dconf for programs that need it
|
# Enable dconf for programs that need it
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
|
|
|
@ -146,9 +146,8 @@ Managed using `agenix`.
|
||||||
|
|
||||||
### `/shell`
|
### `/shell`
|
||||||
|
|
||||||
Things related to the shell environment for this configuration. Most notably, the `bud` CLI tool, and the devshell.
|
Things related to the shell environment for this configuration.
|
||||||
This section really needs a refactor, considering `bud` is a dead project, and the setup for the devShell is poorly organised.
|
This is pending a redo, since I recently replaced `bud` with [my own CLI tool, `universe-cli`](https://github.com/Infinidoge/universe-cli).
|
||||||
Dig through at your own peril.
|
|
||||||
|
|
||||||
### `/users`
|
### `/users`
|
||||||
|
|
||||||
|
|
|
@ -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}"
|
|
|
@ -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 ]);
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -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 "${@}"
|
|
|
@ -1,8 +1,5 @@
|
||||||
{ self, inputs, ... }:
|
{ self, inputs, ... }:
|
||||||
{
|
{
|
||||||
modules = with inputs; [
|
|
||||||
bud.devshellModules.bud
|
|
||||||
];
|
|
||||||
exportedModules = [
|
exportedModules = [
|
||||||
./devos.nix
|
./devos.nix
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue