1
0
Fork 0
nixconf/dev.nix

48 lines
1,003 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;
};
2025-01-04 20:39:16 -07:00
2024-12-23 10:44:58 -07:00
# 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; [
2025-01-04 21:25:46 -07:00
pkgs.gnumake
2024-12-23 10:44:58 -07:00
pkgs.go
pkgs.gotools
2025-01-04 21:25:46 -07:00
pkgs.go-swag
2025-01-04 20:39:16 -07:00
pkgs.rustup
pkgs.zig
2024-12-23 10:44:58 -07:00
pkgs.fnm
pkgs.rclone
pkgs.git
2025-01-04 20:39:16 -07:00
pkgs.helix
pkgs.zed-editor
2024-12-23 10:44:58 -07:00
];
}