infra/common/configuration.nix
2024-05-31 23:39:19 +02:00

60 lines
1 KiB
Nix

{ config, lib, pkgs, ... }:
{
imports = [
./secrets-permissions.nix
./deploy.nix
];
# Enable the OpenSSH daemon
services.openssh.enable = true;
services.openssh.settings.PermitRootLogin = lib.mkDefault "no";
services.fail2ban.enable = true;
# Activate nix flakes.
nix.settings.experimental-features = [ "nix-command" "flakes" ];
time.timeZone = "Europe/Paris";
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "fr-bepo";
};
environment.systemPackages = with pkgs; [
emacs
wget
htop
tmux
bmon
nixfmt-classic
ncdu
git
tig
restic
];
# required when using kitty
environment.enableAllTerminfo = true;
programs.git = {
enable = true;
config.user = {
name = "root";
email = "root@${config.networking.hostName}";
};
config.alias = {
ci = "commit";
co = "checkout";
st = "status";
br = "branch";
};
};
services.emacs = {
enable = true;
defaultEditor = true;
};
}