9b248f9fb4
Co-authored-by: Benjamin Bädorf <hello@benjaminbaedorf.eu> Reviewed-on: https://git.b12f.io/pub-solar/os/pulls/18 Reviewed-by: teutat3s <teutates@mailbox.org> Co-authored-by: Benjamin Bädorf <b12f@noreply.example.org> Co-committed-by: Benjamin Bädorf <b12f@noreply.example.org>
44 lines
982 B
Nix
44 lines
982 B
Nix
{ lib, config, pkgs, ... }:
|
|
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" ];
|
|
|
|
services.lorri.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
screen
|
|
];
|
|
|
|
home-manager = with pkgs; pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] {
|
|
home.packages = [
|
|
ag
|
|
ack
|
|
bat
|
|
exa
|
|
gh
|
|
powerline
|
|
vifm
|
|
watson
|
|
nnn
|
|
fd
|
|
];
|
|
|
|
programs.neovim = import ./nvim { inherit config; inherit pkgs; };
|
|
programs.fzf = import ./fzf { inherit config; inherit pkgs; };
|
|
programs.zsh = import ./zsh { inherit config; inherit pkgs; };
|
|
};
|
|
};
|
|
}
|