config-perso/machines/kat-manah/default.nix

81 lines
1.5 KiB
Nix
Raw Normal View History

2024-05-14 19:21:19 +02:00
{
config,
lib,
pkgs,
...
}:
2024-03-15 10:46:02 +01:00
{
2024-05-14 19:21:19 +02:00
imports = [
./hardware-configuration.nix
];
2024-03-15 10:46:02 +01:00
2024-07-11 11:53:14 +02:00
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
2024-03-15 10:46:02 +01:00
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.supportedFilesystems = [ "bcachefs" ];
boot.kernelPackages = pkgs.linuxPackages_latest;
time.timeZone = "Europe/Paris";
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "fr";
};
services.dbus.packages = with pkgs; [ dconf ];
nixpkgs.config.allowUnfree = true;
programs.zsh.enable = true;
environment.systemPackages = with pkgs; [
wget
brightnessctl
nix-search-cli
git
btop
ranger
dnsmasq
screen
];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services.openssh.enable = true;
2024-03-15 11:09:42 +01:00
services.netbird.enable = true;
2024-03-15 10:46:02 +01:00
2024-05-14 19:21:19 +02:00
boot.kernelModules = [
"kvm-intel"
"kvm-amd"
];
2024-03-20 10:07:21 +01:00
programs.virt-manager.enable = true;
virtualisation.libvirtd.enable = true;
2024-06-19 08:34:47 +02:00
security.acme = {
acceptTerms = true;
defaults.email = "root@katvayor.net";
};
2024-08-21 12:20:36 +02:00
kat-proxies = {
enable = true;
internal-webroot = pkgs.runCommand "manah" { } ''
mkdir -p $out/.kat-manah/
ln -nsf ${./error} $out/.kat-manah/error
'';
};
2024-03-27 17:35:34 +01:00
2024-09-23 14:10:05 +02:00
services.weechat = {
enable = true;
binary = "${pkgs.weechat}/bin/weechat-headless";
};
2024-06-18 09:47:57 +02:00
networking.firewall = {
2024-09-23 14:10:05 +02:00
allowedTCPPorts = [ 9000 9500 53 ];
2024-06-18 09:47:57 +02:00
allowedUDPPorts = [ 67 ];
};
2024-06-27 18:39:21 +02:00
system.stateVersion = "23.11";
2024-03-15 10:46:02 +01:00
}