Major config overhaul: use custom modules, setup for multi-host config, and less boilerplate

This commit is contained in:
Emmet K
2025-02-09 16:50:26 -06:00
parent 1fa8b17b07
commit 0453901d17
303 changed files with 3560 additions and 5566 deletions

View File

@@ -0,0 +1,46 @@
{ config, lib, pkgs, ... }:
let
cfg = config.userSettings.shell.extraApps;
in {
options = {
userSettings.shell.extraApps = {
enable = lib.mkEnableOption "Add some fun but mostly useless CLI apps";
};
};
config = lib.mkIf cfg.enable {
# Fun CLI apps that aren't necessary
home.packages = with pkgs; [
# Command Line
disfetch lolcat cowsay
starfetch
(stdenv.mkDerivation {
name = "pokemon-colorscripts";
version = "unstable";
src = fetchFromGitLab {
owner = "phoneybadger";
repo = "pokemon-colorscripts";
rev = "0483c85b93362637bdd0632056ff986c07f30868";
sha256 = "sha256-rj0qKYHCu9SyNsj1PZn1g7arjcHuIDGHwubZg/yJt7A=";
};
installPhase = ''
mkdir -p $out $out/bin $out/opt
cp -rf $src/colorscripts $out/opt
cp $src/pokemon-colorscripts.py $out/opt
cp $src/pokemon.json $out/opt
ln -s $out/opt/pokemon-colorscripts.py $out/bin/pokemon-colorscripts
'';
meta = {
homepage = "https://github.com/Admiral-Fish/PokeFinder";
description = "CLI utility to print out images of pokemon to terminal";
license = lib.licenses.mit;
maintainers = [];
};
})
];
};
}