infra/common/configuration.nix

70 lines
1.1 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
2024-05-28 17:56:03 +00:00
imports = [
./secrets-permissions.nix
2024-05-29 10:45:06 +00:00
./deploy.nix
2024-05-28 17:56:03 +00:00
];
# Enable the OpenSSH daemon
services.openssh.enable = true;
2024-05-27 20:54:44 +00:00
services.openssh.settings.PermitRootLogin = lib.mkDefault "no";
2024-06-01 17:19:37 +00:00
services.fail2ban = {
enable = true;
maxretry = 5;
ignoreIP = [
"neptune.site.deuxfleurs.fr"
];
};
2024-05-31 09:22:53 +00:00
# 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; [
2024-06-28 18:07:26 +00:00
vim
neovim
emacs
wget
htop
tmux
2024-05-28 17:56:03 +00:00
bmon
2024-05-31 21:39:19 +00:00
nixfmt-classic
ncdu
2024-05-27 20:54:44 +00:00
git
tig
2024-05-28 17:56:03 +00:00
restic
2024-06-01 18:53:10 +00:00
dig
];
2024-05-27 20:45:35 +00:00
# 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";
};
};
2024-05-27 20:43:07 +00:00
services.emacs = {
enable = true;
defaultEditor = true;
};
}