Add depth-recorder service (#32)

- Update hydrophonitor-gps

Signed-off-by: Satu Koskinen <satu.a.koskinen@gmail.com>
This commit is contained in:
Satu Koskinen 2023-10-19 10:34:22 +02:00 committed by GitHub
parent 8f98117aee
commit d8c26fe804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 102 additions and 25 deletions

View File

@ -20,6 +20,25 @@
"type": "github" "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-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -58,6 +77,24 @@
"inputs": { "inputs": {
"systems": "systems_2" "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": { "locked": {
"lastModified": 1692799911, "lastModified": 1692799911,
"narHash": "sha256-3eihraek4qL744EvQXsK1Ha6C3CR7nnT8X2qWap4RNk=", "narHash": "sha256-3eihraek4qL744EvQXsK1Ha6C3CR7nnT8X2qWap4RNk=",
@ -74,15 +111,15 @@
}, },
"hydrophonitor-gps": { "hydrophonitor-gps": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1694371631, "lastModified": 1694708111,
"narHash": "sha256-o2lx75F0VnFnBKajbVbEUuQRcbcSHdCxjUVjdaAoAn8=", "narHash": "sha256-295lPh/11s4hHJsZyF2cXGCPNw1y0dXwq6s0yX9ZtAY=",
"owner": "nordic-dev-net", "owner": "nordic-dev-net",
"repo": "hydrophonitor-gps", "repo": "hydrophonitor-gps",
"rev": "d13bb78ce2d16b842f0be802f9d669ba32a35c3d", "rev": "883e15d872d7bb763bbe89862747e26f6b32460e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -124,6 +161,38 @@
} }
}, },
"nixpkgs_2": { "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": { "locked": {
"lastModified": 1694183432, "lastModified": 1694183432,
"narHash": "sha256-YyPGNapgZNNj51ylQMw9lAgvxtM2ai1HZVUu3GS8Fng=", "narHash": "sha256-YyPGNapgZNNj51ylQMw9lAgvxtM2ai1HZVUu3GS8Fng=",
@ -139,29 +208,14 @@
"type": "github" "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": { "root": {
"inputs": { "inputs": {
"deploy-rs": "deploy-rs", "deploy-rs": "deploy-rs",
"flake-utils": "flake-utils", "depth-recorder": "depth-recorder",
"flake-utils": "flake-utils_2",
"hydrophonitor-gps": "hydrophonitor-gps", "hydrophonitor-gps": "hydrophonitor-gps",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_4"
} }
}, },
"systems": { "systems": {
@ -194,6 +248,21 @@
"type": "github" "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": { "utils": {
"locked": { "locked": {
"lastModified": 1667395993, "lastModified": 1667395993,

View File

@ -9,6 +9,7 @@
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
deploy-rs.url = "github:serokell/deploy-rs"; deploy-rs.url = "github:serokell/deploy-rs";
hydrophonitor-gps.url = "github:nordic-dev-net/hydrophonitor-gps"; hydrophonitor-gps.url = "github:nordic-dev-net/hydrophonitor-gps";
depth-recorder.url = "github:nordic-dev-net/depth-recorder";
}; };
outputs = { outputs = {
self, self,
@ -17,6 +18,7 @@
flake-utils, flake-utils,
deploy-rs, deploy-rs,
hydrophonitor-gps, hydrophonitor-gps,
depth-recorder,
... ...
}: let }: let
forEachSystem = nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"]; forEachSystem = nixpkgs.lib.genAttrs ["x86_64-linux" "aarch64-linux"];
@ -44,6 +46,7 @@
./modules/shutdown-button/service.nix ./modules/shutdown-button/service.nix
nixos-hardware.nixosModules.raspberry-pi-4 nixos-hardware.nixosModules.raspberry-pi-4
hydrophonitor-gps.nixosModules.hydrophonitor-gps hydrophonitor-gps.nixosModules.hydrophonitor-gps
depth-recorder.nixosModules.depth-recorder
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix" "${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
]; ];
}; };

View File

@ -64,7 +64,7 @@ in {
services.gps-recorder = { services.gps-recorder = {
enable = true; enable = true;
output-folder = "/output/gps"; output-path = "/output/gps";
interval-secs = 10; interval-secs = 10;
}; };

View File

@ -47,10 +47,15 @@ in {
services.gps-recorder = { services.gps-recorder = {
enable = true; enable = true;
output-folder = "/output/gps"; output-path = "/output/gps";
interval-secs = 10; interval-secs = 10;
}; };
services.depth-recorder = {
enable = true;
output-path = "/output/depth";
interval-secs = 5;
};
# disabled for now, with current config # disabled for now, with current config
# RTC resets after shutdown # RTC resets after shutdown