2024-09-05 22:22:18 +02:00
|
|
|
{lib, config, pkgs, ...}: {
|
2024-10-19 00:15:34 +02:00
|
|
|
lyn.sops.enable = true;
|
2024-09-05 22:22:18 +02:00
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
2024-10-16 22:50:37 +02:00
|
|
|
nix.package = config.pkgsInstances.unstable.lix;
|
2024-10-16 16:57:55 +02:00
|
|
|
environment.variables.EDITOR = "nvim";
|
2024-09-05 22:22:18 +02:00
|
|
|
|
2024-10-18 23:01:33 +02:00
|
|
|
# TODO
|
2024-09-05 22:22:18 +02:00
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
2024-10-18 23:01:33 +02:00
|
|
|
# Firewall base config:
|
|
|
|
networking.firewall.enable = lib.mkDefault true;
|
|
|
|
networking.firewall.allowPing = true;
|
|
|
|
# SSH:
|
2024-09-05 22:22:18 +02:00
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
X11Forwarding = true;
|
2024-10-16 16:57:55 +02:00
|
|
|
PermitRootLogin = "yes";
|
2024-09-05 22:22:18 +02:00
|
|
|
PasswordAuthentication = false;
|
2024-10-19 01:35:36 +02:00
|
|
|
KbdInteractiveAuthentication = false;
|
2024-09-05 22:22:18 +02:00
|
|
|
};
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
2024-10-18 23:01:33 +02:00
|
|
|
|
|
|
|
# Disable password checking for wheel group users so we can rely on ssh keys.
|
|
|
|
# WARNING: This has an security impact!
|
2024-09-05 22:22:18 +02:00
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
git
|
2024-09-17 02:46:45 +02:00
|
|
|
vim
|
|
|
|
neovim
|
2024-09-05 22:22:18 +02:00
|
|
|
wget
|
|
|
|
curl
|
|
|
|
htop
|
|
|
|
];
|
2024-10-18 23:01:33 +02:00
|
|
|
|
|
|
|
nix.gc = {
|
|
|
|
automatic = true;
|
|
|
|
persistent = true;
|
|
|
|
options = "--delete-older-than 8d";
|
|
|
|
};
|
2024-09-06 02:47:41 +02:00
|
|
|
}
|