51 lines
1.0 KiB
Nix
51 lines
1.0 KiB
Nix
{ lib
|
|
, pkgs
|
|
, localPackages
|
|
, config
|
|
, ...
|
|
}:
|
|
|
|
with lib; let
|
|
cfg = config.simmer.common;
|
|
in
|
|
{
|
|
config = {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
curl
|
|
wget
|
|
git
|
|
killall
|
|
vim
|
|
eza
|
|
ripgrep
|
|
fzf
|
|
yazi
|
|
ncdu
|
|
btop
|
|
]
|
|
++ optional cfg.nil.enable nil;
|
|
|
|
programs.neovim = mkIf cfg.neovim.enable {
|
|
enable = true;
|
|
defaultEditor = true;
|
|
};
|
|
|
|
services.keyd = mkIf (cfg.caps != "caps") {
|
|
enable = true;
|
|
keyboards.default = {
|
|
ids = [ "*" ];
|
|
settings = {
|
|
main = mkMerge [
|
|
(mkIf (cfg.caps == "ctrl-esc") { capslock = "overload(control, esc)"; })
|
|
(mkIf (cfg.caps == "esc") { capslock = "esc"; })
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
programs.fish.enable = mkIf (cfg.shell == "fish") true;
|
|
};
|
|
|
|
}
|