my nixos dotfiles :3 (git.koi.rip mirror) git.koi.rip/koi/dotfiles
linux dotfiles neovim nixos catppuccin
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

seber: init pvzge

june 5e93ed31 0eec1b3e

+46 -2
+1
systems/seber/services/default.nix
··· 6 6 ./lebel.nix 7 7 ./mimi.nix 8 8 ./robin.nix 9 + ./pvzge.nix 9 10 ./vaultwarden.nix 10 11 ./ebil-club.nix 11 12 ];
+1 -2
systems/seber/services/lebel.nix
··· 1 1 { pkgs, ... }: 2 2 3 3 { 4 - environment.systemPackages = [ pkgs.nodejs ]; 5 - 6 4 systemd.services.lebel = { 7 5 description = "lebel"; 8 6 after = [ "network.target" ]; 9 7 wantedBy = [ "multi-user.target" ]; 8 + path = [ pkgs.nodejs ]; 10 9 11 10 serviceConfig = { 12 11 User = "koi";
+44
systems/seber/services/pvzge.nix
··· 1 + { pkgs, ... }: 2 + let 3 + root = "/var/pvzge"; 4 + upstream = "https://github.com/Gzh0821/pvzge_web.git"; 5 + branch = "master"; 6 + in 7 + { 8 + services.nginx.virtualHosts."pvzge.june.xn--q9jyb4c" = { 9 + locations."/".root = "${root}/docs"; 10 + forceSSL = true; 11 + sslCertificate = "/run/agenix/ssl-ebil-cert"; 12 + sslCertificateKey = "/run/agenix/ssl-ebil-key"; 13 + }; 14 + 15 + systemd.timers.pvzge-update = { 16 + wantedBy = [ "timers.target" ]; 17 + timerConfig = { 18 + OnCalendar = "daily"; 19 + Unit = "pvzge-update.service"; 20 + }; 21 + }; 22 + 23 + systemd.services.pvzge-update = { 24 + description = "update pvzge files"; 25 + after = [ "network.target" ]; 26 + wantedBy = [ "multi-user.target" ]; 27 + path = [ pkgs.git ]; 28 + serviceConfig = { 29 + Type = "oneshot"; 30 + User = "koi"; 31 + Group = "nginx"; 32 + WorkingDirectory = root; 33 + }; 34 + script = '' 35 + if [[ -d .git ]]; then 36 + ${pkgs.git}/bin/git pull --ff-only ${upstream} ${branch} 37 + else 38 + ${pkgs.git}/bin/git clone --branch=${branch} --depth=1 ${upstream} . 39 + fi 40 + ''; 41 + }; 42 + 43 + systemd.tmpfiles.rules = [ "d ${root} 2750 koi nginx -" ]; 44 + }