pub-solar-os/modules/terminal-life/default.nix

71 lines
1.4 KiB
Nix
Raw Normal View History

2022-11-20 22:28:23 +00:00
{
lib,
config,
pkgs,
self,
...
}:
with lib; let
2021-05-30 19:10:28 +00:00
psCfg = config.pub-solar;
cfg = config.pub-solar.terminal-life;
2022-11-20 22:28:23 +00:00
in {
2021-05-30 19:10:28 +00:00
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;
# Needed to get zsh completion for system packages (e.g. systemd).
2022-11-20 22:28:23 +00:00
environment.pathsToLink = ["/share/zsh"];
2021-05-30 19:10:28 +00:00
2022-01-19 00:13:15 +00:00
environment.shells = with pkgs; [
zsh
];
2021-05-30 19:10:28 +00:00
environment.systemPackages = with pkgs; [
screen
];
2022-11-20 22:28:23 +00:00
home-manager = with pkgs;
pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
home.packages = [
ack
asciinema
bat
exa
fd
gh
glow
nnn
powerline
silver-searcher
vifm
watson
];
2021-05-30 19:10:28 +00:00
2022-11-20 22:28:23 +00:00
programs.neovim = import ./nvim {
inherit config;
inherit pkgs;
};
programs.fzf = import ./fzf {
inherit config;
inherit pkgs;
};
programs.zsh = import ./zsh {
inherit config;
inherit pkgs;
inherit self;
};
};
2021-05-30 19:10:28 +00:00
};
}