forked from pub-solar/os
teutat3s
32a6b9a016
complete on first TAB if there's a single matching filename with show-all-if-ambiguous on enable history search with arrow up after starting to type a command
78 lines
1.6 KiB
Nix
78 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
self,
|
|
inputs,
|
|
...
|
|
}:
|
|
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";
|
|
|
|
lite = mkOption {
|
|
description = ''
|
|
Enable a lite edition of terminal-life with less modules and a reduced package set.
|
|
'';
|
|
default = false;
|
|
type = types.bool;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.command-not-found.enable = false;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
screen
|
|
];
|
|
|
|
# Starship is a fast and featureful shell prompt
|
|
# starship.toml has sane defaults that can be changed there
|
|
programs.starship = {
|
|
enable = true;
|
|
settings = import ./starship.toml.nix;
|
|
};
|
|
|
|
home-manager = with pkgs;
|
|
pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
|
|
home.packages = [
|
|
ack
|
|
asciinema
|
|
bat
|
|
blesh
|
|
exa
|
|
fd
|
|
gh
|
|
glow
|
|
jump
|
|
mdbook-multilang
|
|
nnn
|
|
notes
|
|
powerline
|
|
python-wiki-fetch
|
|
silver-searcher
|
|
vifm
|
|
watson
|
|
];
|
|
|
|
programs.bash = import ./bash {
|
|
inherit config;
|
|
inherit pkgs;
|
|
inherit self;
|
|
inherit inputs;
|
|
};
|
|
programs.fzf = import ./fzf {
|
|
inherit config;
|
|
inherit pkgs;
|
|
};
|
|
programs.neovim = import ./nvim {
|
|
inherit config;
|
|
inherit pkgs;
|
|
};
|
|
};
|
|
};
|
|
}
|