nixos: backend server

This commit is contained in:
Antoine Thouvenin 2022-08-06 22:31:18 +02:00 committed by Pierre-Olivier Mercier
commit 643ecb1e14
24 changed files with 542 additions and 5 deletions

View file

@ -13,7 +13,7 @@
# Generate a version based on date
version = builtins.substring 0 12 self.lastModifiedDate;
vendorSha256 = "sha256-n271oFjC13gelSNV1bZdr/KH724ewoOF1NZ6U7il56I=";
vendorSha256 = "sha256-itCvN/Z8DkUUdtx6At+4DyeJK8PgFJ/5A3G03VT4I2k";
overrideModAttrs = _ : { name = "fic-./.-${version}-go-modules"; };
# System types to support.
@ -56,6 +56,20 @@
subPackages = [ "dashboard" ];
};
fic-synchro = pkgs.writeShellApplication {
name = "synchro";
runtimeInputs = [ pkgs.rsync pkgs.openssh pkgs.coreutils ];
text = ''
${(builtins.readFile ./configs/synchro.sh)}
'';
};
fic-configs = pkgs.stdenv.mkDerivation {
name = "configs";
src = ./.;
installPhase = "mkdir -p $out/; cp -r configs/ $out/";
};
fic-frontend = pkgs.buildGoModule {
pname = "frontend";
inherit version vendorSha256 overrideModAttrs;