os/modules/terminal-life/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

77 lines
1.6 KiB
Nix
Raw Normal View History

{
lib,
config,
pkgs,
...
}:
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";
lite = mkOption {
description = ''
Enable a lite edition of terminal-life with less modules and a reduced package set.
'';
default = false;
type = types.bool;
};
2021-05-30 19:10:28 +00:00
};
config = mkIf cfg.enable {
programs.command-not-found.enable = false;
environment.systemPackages = with pkgs; [
screen
];
home-manager = with pkgs;
pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
home.packages = [
2023-11-11 00:12:57 +00:00
blesh
exa
jump
2023-01-28 21:30:37 +00:00
] ++ lib.optionals (!cfg.lite) [
2021-05-30 19:10:28 +00:00
ack
2022-01-31 16:34:32 +00:00
asciinema
2021-05-30 19:10:28 +00:00
bat
fd
2021-05-30 19:10:28 +00:00
gh
glow
(nnn.overrideAttrs (o: {
patches =
(o.patches or [])
++ [
./nnn/0001-feat-use-wasd-keybindings-for-jkli.patch
];
}))
2021-05-30 19:10:28 +00:00
powerline
silver-searcher
2021-05-30 19:10:28 +00:00
watson
];
2023-11-11 00:12:57 +00:00
programs.starship = {
enable = true;
settings = import ./starship.toml.nix;
};
2023-10-05 23:25:07 +00:00
programs.bash = import ./bash {
2021-05-30 19:10:28 +00:00
inherit config;
inherit pkgs;
2023-11-11 00:05:42 +00:00
inherit lib;
2021-05-30 19:10:28 +00:00
};
2023-10-05 23:25:07 +00:00
programs.neovim = import ./nvim {
2021-05-30 19:10:28 +00:00
inherit config;
inherit pkgs;
2023-10-05 23:25:07 +00:00
inherit lib;
};
2023-10-05 23:25:07 +00:00
programs.fzf = import ./fzf {
inherit config;
inherit pkgs;
2021-05-30 19:10:28 +00:00
};
2023-02-25 13:45:21 +00:00
};
2021-05-30 19:10:28 +00:00
};
}