updated nix based backend image generation
This commit is contained in:
parent
f0701f9b2c
commit
1c770042c6
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
description = "FabNet IoT Platform";
|
||||
description = "Smart Energy Monitor";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
@ -91,11 +91,11 @@
|
|||
};
|
||||
|
||||
deploy.nodes.gateway = {
|
||||
hostname = "fabnet";
|
||||
hostname = "sem";
|
||||
fastConnection = true;
|
||||
profiles = {
|
||||
system = {
|
||||
sshUser = "fabnet";
|
||||
sshUser = "sem";
|
||||
path =
|
||||
deploy-rs.lib.aarch64-linux.activate.nixos
|
||||
self.nixosConfigurations.gateway;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{self, ...}: system:
|
||||
with self.pkgs.${system};
|
||||
mkShell {
|
||||
name = "FabNet";
|
||||
name = "Smart Energy Monitor";
|
||||
nativeBuildInputs =
|
||||
[
|
||||
# Development
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
];
|
||||
system.stateVersion = lib.mkForce "23.05";
|
||||
|
||||
networking.hostName = "fabnet";
|
||||
networking.hostName = "sem";
|
||||
networking.hostId = builtins.substring 0 8 (builtins.hashString "md5" config.networking.hostName);
|
||||
networking.firewall.allowedTCPPorts = lib.mkDefault [
|
||||
1880 # Node-Red
|
||||
|
@ -38,7 +38,26 @@
|
|||
services.node-red.enable = lib.mkDefault true;
|
||||
services.influxdb2.enable = lib.mkDefault true;
|
||||
services.prometheus.enable = lib.mkDefault true;
|
||||
|
||||
services.octoprint.enable = lib.mkDefault true;
|
||||
services.octoprint.plugins = plugins:
|
||||
with plugins; [
|
||||
themeify
|
||||
stlviewer
|
||||
];
|
||||
services.octoprint.extraConfig = lib.mkDefault {
|
||||
appearance.name = "FabNet";
|
||||
api.enabled = true;
|
||||
slicing.enabled = true;
|
||||
serial = {
|
||||
port = "/dev/ttyACM0";
|
||||
autoconnect = true;
|
||||
};
|
||||
webcam = {
|
||||
stream = "http://<stream host>:<stream port>/?action=stream";
|
||||
ffmpeg = "${pkgs.ffmpeg}/bin/ffmpeg";
|
||||
};
|
||||
};
|
||||
|
||||
services.grafana.enable = lib.mkDefault true;
|
||||
services.grafana.settings.server.http_port = 7878;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
...
|
||||
}: {
|
||||
networking.firewall.enable = lib.mkForce true;
|
||||
networking.wireless.enable = lib.mkDefault true;
|
||||
# networking.wireless.enable = lib.mkDefault true;
|
||||
networking.networkmanager.enable = lib.mkDefault true;
|
||||
|
||||
services.avahi.enable = lib.mkDefault true;
|
||||
|
|
Loading…
Reference in a new issue