making stm32cube repo installed by default
All checks were successful
/ build-installer (push) Successful in 29s
All checks were successful
/ build-installer (push) Successful in 29s
This commit is contained in:
parent
d4fb99ce55
commit
0d727d7074
1 changed files with 19 additions and 0 deletions
|
|
@ -676,6 +676,25 @@ in
|
|||
PGUSER = "postgres";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
systemd.user.services.stm32cubemx-repo =
|
||||
let
|
||||
stm32f1-v180 = builtins.fetchTarball { url = "http://${serverIP}/STM32Cube.tar.gz"; sha256 = "sha256:1zlcp82xq16anx02ghiv9xa5bi2fsz78h945miqmi26bwcjxdagn"; };
|
||||
|
||||
in {
|
||||
description = "STM32CubeMX firmware repository setup";
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
ExecStart = pkgs.writeShellScript "stm32cubemx-repo-setup" ''
|
||||
cp -r ${stm32f1-v180}/. "$HOME/STM32Cube"
|
||||
chmod -R u+w "$HOME/STM32Cube"
|
||||
'';
|
||||
};
|
||||
};
|
||||
services.grdcontrol.enable = true;
|
||||
|
||||
imports = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue