nix-config/hosts/skycam/default.nix
2024-08-05 17:54:43 +01:00

39 lines
744 B
Nix

{ config, lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
../server.nix
];
raspberry-pi-nix.board = "bcm2711";
networking = {
hostId = "731d1660";
firewall = {
enable = true;
allowedTCPPorts = [ 8080 ];
allowedUDPPorts = [ 8080 ];
};
};
users.users.root = {
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILVHTjsyMIV4THNw6yz0OxAxGnC+41gX72UrPqTzR+OS jordan@vimium.com"
];
};
services.openssh.settings.PermitRootLogin = lib.mkForce "prohibit-password";
environment.systemPackages = with pkgs; [
git
neovim
libraspberrypi
raspberrypi-eeprom
v4l-utils
unstable.ustreamer
];
system.stateVersion = "24.05";
}