mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
31 lines
567 B
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
}
|