1
0
Fork 0
nixconf/dev.nix

45 lines
949 B
Nix
Raw Normal View History

2024-12-23 10:44:58 -07:00
{ pkgs, ... }:
{
# Docker
virtualisation.docker.enable = true;
virtualisation.docker.rootless = {
enable = true;
setSocketVariable = true;
daemon.settings.features.cdi = true;
};
# Tailscale
services.tailscale.enable = true;
services.tailscale.useRoutingFeatures = "client";
networking.nameservers = ["100.100.100.100"];
networking.search = ["heron-velociraptor.ts.net"];
networking.firewall.enable = false;
# SSH
services.openssh = {
enable = true;
ports = [ 22 ];
settings = {
PasswordAuthentication = true;
2024-12-23 14:34:03 -07:00
AllowUsers = null;
2024-12-23 10:44:58 -07:00
UseDns = true;
X11Forwarding = false;
PermitRootLogin = "yes"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no"
};
};
2024-12-23 14:34:03 -07:00
# Dev packages
2024-12-23 10:44:58 -07:00
environment.systemPackages = with pkgs; [
pkgs.go
pkgs.gotools
pkgs.fnm
pkgs.sublime4
pkgs.sublime-merge
pkgs.rclone
pkgs.git
];
}