nixcfg/modules/darwin/services/base/default.nix
Harald Hoyer 836f4a2848 Add openssh to default dependencies
Added openssh to the default dependencies list in the Darwin services base module. This ensures that OpenSSH tools are available by default, enhancing remote access and security operations.
2024-11-27 17:25:56 +01:00

69 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
openssh
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;
};
};
}