mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-25 22:35:03 +01:00
yodaYoga: BikeTripPlanner
This commit is contained in:
parent
446ae380fe
commit
b49ea4fe12
@ -8,10 +8,28 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Download BikeTripPlanner Git repository.
|
||||||
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
|
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
|
||||||
home.file."readonly-git/BikeTripPlanner".source = (builtins.fetchGit {
|
home.file."readonly-git/BikeTripPlanner".source = (builtins.fetchGit {
|
||||||
url = "https://github.com/langbein-daniel/BikeTripPlanner";
|
url = "https://github.com/langbein-daniel/BikeTripPlanner";
|
||||||
#leaveDotGit = true;
|
#leaveDotGit = true;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Start BikeTripPlanner during boot.
|
||||||
|
# To few the log, run
|
||||||
|
# journalctl -b -u BikeTripPlanner -f
|
||||||
|
#
|
||||||
|
systemd.services."BikeTripPlanner" = {
|
||||||
|
description = "Start BikeTripPlanner";
|
||||||
|
path = with pkgs; [
|
||||||
|
bash
|
||||||
|
docker
|
||||||
|
];
|
||||||
|
script = ''
|
||||||
|
docker compose -f /home/yoda/readonly-git/BikeTripPlanner/deployment/btp-only.yml up -d --wait
|
||||||
|
'';
|
||||||
|
# Start after login.
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user