nix-config/modules/apps/terminal.nix
2025-04-13 02:50:14 +02:00

52 lines
871 B
Nix

{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.apps.terminal;
homeCfg = config.horseman;
in {
options = {
horseman.apps.terminal = {
enable = mkEnableOption "Apps that run only in terminal without a GUI";
};
};
config = mkIf cfg.enable {
home-manager.users.${homeCfg.username} = {
imports = [./terminal/neovim.nix];
};
services.lorri.enable = true;
environment.systemPackages = with pkgs; [
direnv
docker-compose
ethtool
file
fzf
gcc
btop
gnupg
neofetch
sops
sxiv
termdown
tmux
unzip
wakeonlan
zip
];
environment.sessionVariables = rec {
TERM = "kitty";
};
# Docker
virtualisation.docker.enable = true;
};
}