forked from pub-solar/os
Benjamin Bädorf
41c2d668f7
vifm is removed in favour of nnn, with the keybindings in nvim being changed. TODO: improve the colorscheme of `nnn` to match `ls`. All nvim plugins that were responsible for language syntax highlighting are removed in favour of treesitter[1], a syntax highlighter that parses AST instead of being regex-based. This is still experimental, but my tests so far have not encountered any issues. 1) https://github.com/nvim-treesitter/nvim-treesitter
79 lines
1.6 KiB
Nix
79 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
self,
|
|
...
|
|
}:
|
|
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
|
|
(nnn.overrideAttrs (o: {
|
|
patches =
|
|
(o.patches or [])
|
|
++ [
|
|
./nnn/0001-feat-use-wasd-keybindings-for-jkli.patch
|
|
];
|
|
}))
|
|
powerline
|
|
silver-searcher
|
|
watson
|
|
];
|
|
|
|
programs.bash = import ./bash {
|
|
inherit config;
|
|
inherit pkgs;
|
|
inherit self;
|
|
};
|
|
programs.fzf = import ./fzf {
|
|
inherit config;
|
|
inherit pkgs;
|
|
};
|
|
programs.neovim = import ./nvim {
|
|
inherit config;
|
|
inherit pkgs;
|
|
inherit lib;
|
|
};
|
|
};
|
|
};
|
|
}
|