Harald Hoyer
cbe03d1060
Renamed several modules to better align with Darwin-specific configurations. Refactored configuration for Alacritty and removed it from system packages where not needed. Introduced Homebrew settings and cleaned up redundant entries in multiple Nix files.
68 lines
1.1 KiB
Nix
68 lines
1.1 KiB
Nix
{
|
|
options,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.metacfg;
|
|
let
|
|
cfg = config.metacfg.base;
|
|
in
|
|
{
|
|
options.metacfg.base = with types; {
|
|
enable = mkBoolOpt false "Whether or not to enable the base config.";
|
|
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment = {
|
|
systemPackages = with pkgs; [
|
|
age
|
|
delta
|
|
git
|
|
git-crypt
|
|
git-delete-merged-branches
|
|
home-manager
|
|
htop
|
|
mosh
|
|
nixpkgs-fmt
|
|
openssl
|
|
restic
|
|
rrsync
|
|
sops
|
|
tmux
|
|
vim
|
|
wget
|
|
starship
|
|
];
|
|
shells = [
|
|
pkgs.fish
|
|
pkgs.bash
|
|
pkgs.zsh
|
|
];
|
|
};
|
|
|
|
programs = {
|
|
fish.enable = true;
|
|
};
|
|
|
|
environment.systemPath = [ /run/current-system/sw/bin ];
|
|
|
|
programs = {
|
|
bash = {
|
|
## shellInit = ''
|
|
interactiveShellInit = ''
|
|
bind '"\e[A": history-search-backward'
|
|
bind '"\e[B": history-search-forward'
|
|
'';
|
|
};
|
|
};
|
|
|
|
security = {
|
|
pam.enableSudoTouchIdAuth = true;
|
|
};
|
|
};
|
|
}
|