Add depth-recorder service (#32)
- Update hydrophonitor-gps Signed-off-by: Satu Koskinen <satu.a.koskinen@gmail.com>
This commit is contained in:
parent
8f98117aee
commit
d8c26fe804
115
flake.lock
115
flake.lock
@ -20,6 +20,25 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"depth-recorder": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1697648799,
|
||||
"narHash": "sha256-mxdm8vNEwNlolWIjsX60KbljKADh/mKRMq8+SV7+dPs=",
|
||||
"owner": "nordic-dev-net",
|
||||
"repo": "depth-recorder",
|
||||
"rev": "fabc9ce161b72d8149f3dfc31c6d996ffa972bf5",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nordic-dev-net",
|
||||
"repo": "depth-recorder",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-compat": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
@ -58,6 +77,24 @@
|
||||
"inputs": {
|
||||
"systems": "systems_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1694529238,
|
||||
"narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils_3": {
|
||||
"inputs": {
|
||||
"systems": "systems_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1692799911,
|
||||
"narHash": "sha256-3eihraek4qL744EvQXsK1Ha6C3CR7nnT8X2qWap4RNk=",
|
||||
@ -74,15 +111,15 @@
|
||||
},
|
||||
"hydrophonitor-gps": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_2",
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
"flake-utils": "flake-utils_3",
|
||||
"nixpkgs": "nixpkgs_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1694371631,
|
||||
"narHash": "sha256-o2lx75F0VnFnBKajbVbEUuQRcbcSHdCxjUVjdaAoAn8=",
|
||||
"lastModified": 1694708111,
|
||||
"narHash": "sha256-295lPh/11s4hHJsZyF2cXGCPNw1y0dXwq6s0yX9ZtAY=",
|
||||
"owner": "nordic-dev-net",
|
||||
"repo": "hydrophonitor-gps",
|
||||
"rev": "d13bb78ce2d16b842f0be802f9d669ba32a35c3d",
|
||||
"rev": "883e15d872d7bb763bbe89862747e26f6b32460e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -124,6 +161,38 @@
|
||||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1696879762,
|
||||
"narHash": "sha256-Ud6bH4DMcYHUDKavNMxAhcIpDGgHMyL/yaDEAVSImQY=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "f99e5f03cc0aa231ab5950a15ed02afec45ed51a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1694183432,
|
||||
"narHash": "sha256-YyPGNapgZNNj51ylQMw9lAgvxtM2ai1HZVUu3GS8Fng=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "f99e5f03cc0aa231ab5950a15ed02afec45ed51a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1694183432,
|
||||
"narHash": "sha256-YyPGNapgZNNj51ylQMw9lAgvxtM2ai1HZVUu3GS8Fng=",
|
||||
@ -139,29 +208,14 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1694422566,
|
||||
"narHash": "sha256-lHJ+A9esOz9vln/3CJG23FV6Wd2OoOFbDeEs4cMGMqc=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "3a2786eea085f040a66ecde1bc3ddc7099f6dbeb",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"deploy-rs": "deploy-rs",
|
||||
"flake-utils": "flake-utils",
|
||||
"depth-recorder": "depth-recorder",
|
||||
"flake-utils": "flake-utils_2",
|
||||
"hydrophonitor-gps": "hydrophonitor-gps",
|
||||
"nixos-hardware": "nixos-hardware",
|
||||
"nixpkgs": "nixpkgs_3"
|
||||
"nixpkgs": "nixpkgs_4"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
@ -194,6 +248,21 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems_3": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"utils": {
|
||||
"locked": {
|
||||
"lastModified": 1667395993,
|
||||
|
@ -9,6 +9,7 @@
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
deploy-rs.url = "github:serokell/deploy-rs";
|
||||
hydrophonitor-gps.url = "github:nordic-dev-net/hydrophonitor-gps";
|
||||
depth-recorder.url = "github:nordic-dev-net/depth-recorder";
|
||||
};
|
||||
outputs = {
|
||||
self,
|
||||
@ -17,6 +18,7 @@
|
||||
flake-utils,
|
||||
deploy-rs,
|
||||
hydrophonitor-gps,
|
||||
depth-recorder,
|
||||
...
|
||||
}: let
|
||||
forEachSystem = nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"];
|
||||
@ -44,6 +46,7 @@
|
||||
./modules/shutdown-button/service.nix
|
||||
nixos-hardware.nixosModules.raspberry-pi-4
|
||||
hydrophonitor-gps.nixosModules.hydrophonitor-gps
|
||||
depth-recorder.nixosModules.depth-recorder
|
||||
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
|
||||
];
|
||||
};
|
||||
|
@ -64,7 +64,7 @@ in {
|
||||
|
||||
services.gps-recorder = {
|
||||
enable = true;
|
||||
output-folder = "/output/gps";
|
||||
output-path = "/output/gps";
|
||||
interval-secs = 10;
|
||||
};
|
||||
|
||||
|
@ -47,10 +47,15 @@ in {
|
||||
|
||||
services.gps-recorder = {
|
||||
enable = true;
|
||||
output-folder = "/output/gps";
|
||||
output-path = "/output/gps";
|
||||
interval-secs = 10;
|
||||
};
|
||||
|
||||
services.depth-recorder = {
|
||||
enable = true;
|
||||
output-path = "/output/depth";
|
||||
interval-secs = 5;
|
||||
};
|
||||
|
||||
# disabled for now, with current config
|
||||
# RTC resets after shutdown
|
||||
|
Loading…
Reference in New Issue
Block a user