2022-11-13 21:45:50 +00:00
|
|
|
{ config, lib, pkgs, modules, sources, ... }:
|
2020-11-27 20:56:20 +00:00
|
|
|
|
2022-11-13 21:45:50 +00:00
|
|
|
{
|
2020-11-27 20:56:20 +00:00
|
|
|
imports = [
|
2021-01-10 23:53:41 +00:00
|
|
|
../modules
|
2020-11-27 20:56:20 +00:00
|
|
|
./users.nix
|
2021-07-29 20:31:14 +00:00
|
|
|
modules.network.nftables
|
2020-11-27 20:56:20 +00:00
|
|
|
];
|
|
|
|
|
2021-07-29 20:31:14 +00:00
|
|
|
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages;
|
2020-11-27 20:56:20 +00:00
|
|
|
boot.kernelParams = [ "quiet" ];
|
|
|
|
|
|
|
|
networking.domain = lib.mkDefault "hacc.space";
|
|
|
|
|
2021-01-07 00:18:08 +00:00
|
|
|
services.journald.extraConfig = ''
|
|
|
|
SystemMaxUse=512M
|
|
|
|
MaxRetentionSec=48h
|
|
|
|
'';
|
2020-11-27 20:56:20 +00:00
|
|
|
nix.gc.automatic = lib.mkDefault true;
|
|
|
|
nix.gc.options = lib.mkDefault "--delete-older-than 1w";
|
|
|
|
nix.trustedUsers = [ "root" "@wheel" ];
|
|
|
|
environment.variables.EDITOR = "vim";
|
|
|
|
|
2020-12-03 20:54:49 +00:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
ports = lib.mkDefault [ 62954 ];
|
|
|
|
passwordAuthentication = false;
|
2022-11-09 23:52:41 +00:00
|
|
|
kbdInteractiveAuthentication = false;
|
2020-12-03 20:54:49 +00:00
|
|
|
permitRootLogin = lib.mkDefault "prohibit-password";
|
|
|
|
extraConfig = "StreamLocalBindUnlink yes";
|
|
|
|
forwardX11 = true;
|
|
|
|
};
|
2022-11-13 19:26:48 +00:00
|
|
|
programs.mosh.enable = true;
|
2020-11-27 20:56:20 +00:00
|
|
|
security.sudo.wheelNeedsPassword = lib.mkDefault false;
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_IE.UTF-8";
|
|
|
|
console = {
|
|
|
|
font = "Lat2-Terminus16";
|
|
|
|
keyMap = "de";
|
|
|
|
};
|
|
|
|
programs.mtr.enable = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
smartmontools lm_sensors htop tcpdump nload iftop
|
2021-12-25 17:56:29 +00:00
|
|
|
bottom
|
2022-01-19 21:11:10 +00:00
|
|
|
ripgrep vgrep
|
2020-11-27 20:56:20 +00:00
|
|
|
git wget
|
|
|
|
kitty.terminfo
|
|
|
|
rsync pv progress
|
|
|
|
parallel bc
|
|
|
|
usbutils pciutils
|
|
|
|
cryptsetup gptfdisk
|
|
|
|
zstd p7zip
|
|
|
|
file
|
|
|
|
whois
|
|
|
|
iperf
|
|
|
|
fd
|
|
|
|
exa
|
|
|
|
socat
|
|
|
|
tmux
|
|
|
|
gnupg
|
2021-12-25 17:56:29 +00:00
|
|
|
vim neovim
|
2020-11-27 20:56:20 +00:00
|
|
|
patchelf
|
|
|
|
binutils
|
|
|
|
dnsutils
|
|
|
|
flashrom ifdtool cbfstool nvramtool
|
|
|
|
nmap
|
2020-12-01 18:07:36 +00:00
|
|
|
s-tui stress
|
2020-12-01 20:00:13 +00:00
|
|
|
ffmpeg-full
|
2021-12-25 17:56:29 +00:00
|
|
|
bat
|
2022-02-04 07:51:39 +00:00
|
|
|
niv
|
2020-11-27 20:56:20 +00:00
|
|
|
];
|
|
|
|
|
2022-11-09 23:52:41 +00:00
|
|
|
security.acme.defaults.email = "info+acme@hacc.space";
|
2020-11-29 01:41:34 +00:00
|
|
|
security.acme.acceptTerms = true;
|
2021-01-15 21:02:03 +00:00
|
|
|
|
2021-01-15 21:09:32 +00:00
|
|
|
services.nginx.appendHttpConfig = ''
|
2021-01-15 21:02:03 +00:00
|
|
|
access_log off;
|
2021-08-07 19:24:59 +00:00
|
|
|
add_header Permissions-Policy "interest-cohort=()";
|
2021-01-15 21:02:03 +00:00
|
|
|
'';
|
2021-01-15 22:45:34 +00:00
|
|
|
|
2021-07-29 20:31:14 +00:00
|
|
|
networking.nftables.enable = true;
|
2020-11-27 20:56:20 +00:00
|
|
|
}
|