mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
Add hr proxies
This commit is contained in:
parent
8fa97234e4
commit
171c1e2e06
1 changed files with 30 additions and 0 deletions
|
|
@ -12,5 +12,35 @@ in {
|
|||
|
||||
config = lib.mkIf cfg.hr.enable {
|
||||
home.packages = [hr];
|
||||
|
||||
systemd.user.services = {
|
||||
google-db-proxy-test = {
|
||||
Unit = {
|
||||
Description = "Google Cloud SQL Proxy (Test)";
|
||||
After = ["network.target"];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.google-cloud-sql-proxy}/bin/cloud-sql-proxy mk2-test:europe-west1:mk2-test-sql-instance -p 5436";
|
||||
Restart = "always";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["default.target"];
|
||||
};
|
||||
};
|
||||
|
||||
google-db-proxy-prod = {
|
||||
Unit = {
|
||||
Description = "Google Cloud SQL Proxy (Prod)";
|
||||
After = ["network.target"];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.google-cloud-sql-proxy}/bin/cloud-sql-proxy mk2-prod:europe-west1:mk2-prod-sql-instance -p 5437";
|
||||
Restart = "always";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = ["default.target"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue