infrastructure/systems/kitchencam/default.nix
2024-04-16 03:07:39 -07:00

31 lines
567 B
Nix

_: {
type = "Linux";
extern.files = {
"/etc/dhcpcd.conf" = {
source = ./dhcpcd.conf;
};
"/etc/motion/motion.conf" = {
source = ./motion.conf;
};
};
network.networks = {
local = {
# TODO: macAddress = ?;
address4 = null;
address6 = "fd0a::ba27:ebff:fea8:f4ff";
};
};
exports = {
services = {
sshd = {
enable = true;
ports.public.enable = false;
};
motion = {
id = "kitchen";
enable = true;
ports.stream.port = 41081;
};
};
};
}