2021-10-29 14:43:36 +00:00
|
|
|
{ lib, config, pkgs, self, ... }:
|
2021-05-30 19:10:28 +00:00
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
psCfg = config.pub-solar;
|
|
|
|
cfg = config.pub-solar.terminal-life;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.pub-solar.terminal-life = {
|
|
|
|
enable = mkEnableOption "Life in black and white";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.command-not-found.enable = false;
|
|
|
|
|
|
|
|
# Needed to get zsh completion for system packages (e.g. systemd).
|
|
|
|
environment.pathsToLink = [ "/share/zsh" ];
|
|
|
|
|
2021-11-29 13:10:21 +00:00
|
|
|
environment.shells = with pkgs; [
|
|
|
|
zsh
|
|
|
|
];
|
2021-05-30 19:10:28 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
screen
|
|
|
|
];
|
|
|
|
|
|
|
|
home-manager = with pkgs; pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] {
|
|
|
|
home.packages = [
|
|
|
|
ack
|
2021-11-07 18:17:10 +00:00
|
|
|
ag
|
2021-05-30 19:10:28 +00:00
|
|
|
bat
|
|
|
|
exa
|
2021-11-07 18:17:10 +00:00
|
|
|
fd
|
2021-05-30 19:10:28 +00:00
|
|
|
gh
|
2021-11-07 18:17:10 +00:00
|
|
|
glow
|
|
|
|
nnn
|
2021-05-30 19:10:28 +00:00
|
|
|
powerline
|
|
|
|
vifm
|
|
|
|
watson
|
|
|
|
];
|
|
|
|
|
|
|
|
programs.neovim = import ./nvim { inherit config; inherit pkgs; };
|
|
|
|
programs.fzf = import ./fzf { inherit config; inherit pkgs; };
|
2021-10-29 14:43:36 +00:00
|
|
|
programs.zsh = import ./zsh { inherit config; inherit pkgs; inherit self; };
|
2021-05-30 19:10:28 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|