2023-01-25 12:21:02 +01:00
|
|
|
{self, ...}: system:
|
|
|
|
with self.pkgs.${system};
|
|
|
|
mkShell {
|
2023-06-19 14:35:24 +02:00
|
|
|
name = "Smart Energy Monitor";
|
2023-01-25 12:21:02 +01:00
|
|
|
nativeBuildInputs =
|
|
|
|
[
|
|
|
|
# Development
|
|
|
|
editorconfig-checker
|
|
|
|
pre-commit
|
|
|
|
yaml-language-server
|
|
|
|
]
|
|
|
|
++ lib.optionals (pkgs.hostPlatform.system == "x86_64-linux") [
|
|
|
|
vscodium-fhs
|
2023-09-28 09:31:19 +02:00
|
|
|
vscode-extensions.marp-team.marp-vscode
|
2023-01-25 12:21:02 +01:00
|
|
|
]
|
|
|
|
++ [
|
|
|
|
# Linter
|
|
|
|
git
|
|
|
|
yamllint
|
|
|
|
|
|
|
|
# Nix
|
|
|
|
alejandra
|
2023-02-20 23:03:41 +01:00
|
|
|
nixUnstable
|
2023-09-28 09:33:06 +02:00
|
|
|
nil
|
2023-01-25 12:21:02 +01:00
|
|
|
|
|
|
|
# Service
|
|
|
|
mosquitto
|
|
|
|
|
|
|
|
# Misc
|
|
|
|
reuse
|
|
|
|
];
|
|
|
|
shellHook = ''
|
|
|
|
${self.checks.${system}.pre-commit-check.shellHook}
|
|
|
|
'';
|
2023-02-20 23:03:41 +01:00
|
|
|
allowUnsupportedSystem = true;
|
2023-01-25 12:21:02 +01:00
|
|
|
}
|