nix/lib/modules/nixos/shell-config.nix
Daniel Flanagan 685bc050dd
Some checks failed
/ build-host (map[host:beefcake]) (push) Failing after 10s
/ build-host (map[host:dragon]) (push) Failing after 9s
/ build-host (map[host:flipflop]) (push) Failing after 9s
/ build-host (map[host:foxtrot]) (push) Failing after 10s
/ build-host (map[host:rascal]) (push) Failing after 10s
/ build-host (map[host:router]) (push) Failing after 10s
/ build-devshell (push) Successful in 18s
/ flake-check (push) Failing after 20s
fix: Smaller...
2025-03-21 00:18:40 -05:00

77 lines
1.3 KiB
Nix

{
lib,
pkgs,
config,
...
}:
let
cfg = config.lyte.shell;
in
{
options = {
lyte = {
shell = {
enable = lib.mkEnableOption "Enable my default shell configuration and applications";
};
};
};
config = lib.mkIf cfg.enable {
systemPackages = with pkgs; [ ghostty-terminfo ];
programs.nix-index.enable = true;
programs.command-not-found.enable = false;
users = {
defaultUserShell = pkgs.fish;
};
programs = {
fish.enable = true;
traceroute.enable = true;
git = {
enable = true;
package = pkgs.gitFull;
lfs.enable = true;
};
};
environment = {
variables = {
EDITOR = "hx";
SYSTEMD_EDITOR = "hx";
VISUAL = "hx";
PAGER = "bat --style=plain";
MANPAGER = "bat --style=plain";
};
systemPackages = with pkgs; [
aria2
bat
bottom
btop
comma
curl
dnsutils
dogdns
dua
eza
fd
file
helix
hexyl
htop
iftop
inetutils
iputils
killall
nettools
nmap
pciutils
unixtools.xxd
ripgrep
rsync
sd
usbutils
xh
zellij
];
};
};
}