nixdots/modules/servers/common.nix
2026-05-18 16:02:54 +03:00

27 lines
580 B
Nix

{pkgs, ...}: {
environment.systemPackages = with pkgs; [
nano
fastfetch
kitty
jdk17_headless
autossh
btop
wget
iperf3
pciutils
];
services.openssh = {
enable = true;
settings = {
AllowTcpForwarding = true;
X11Forwarding = true;
GatewayPorts = "yes";
};
};
programs.bash.interactiveShellInit = ''
PS1="\[\e[38;5;177m\]\u\[\e[0m\]@\[\e[38;5;220m\]\h\[\e[0m\] \[\e[38;5;33m\]\w\[\e[0m\] \$ "
'';
nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = ["nix-command" "flakes"];
}