Harald Hoyer
f806db9a11
Eliminated obsolete systemPath entry from Darwin services default configuration. Removed unused foreign-env plugin and commented code related to shell initialization in Fish configuration. Additionally, commented out unnecessary SSH configuration options in user-specific settings.
67 lines
1 KiB
Nix
67 lines
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
|
|
openssh
|
|
restic
|
|
rrsync
|
|
sops
|
|
tmux
|
|
vim
|
|
wget
|
|
starship
|
|
];
|
|
shells = [
|
|
pkgs.fish
|
|
pkgs.bash
|
|
pkgs.zsh
|
|
];
|
|
};
|
|
|
|
programs = {
|
|
fish.enable = true;
|
|
};
|
|
|
|
programs = {
|
|
bash = {
|
|
## shellInit = ''
|
|
interactiveShellInit = ''
|
|
bind '"\e[A": history-search-backward'
|
|
bind '"\e[B": history-search-forward'
|
|
'';
|
|
};
|
|
};
|
|
|
|
security = {
|
|
pam.enableSudoTouchIdAuth = true;
|
|
};
|
|
};
|
|
}
|