wow
This commit is contained in:
parent
9bbceb15fd
commit
56add49b96
3 changed files with 30 additions and 2 deletions
17
flake.lock
generated
17
flake.lock
generated
|
|
@ -51,6 +51,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"cfwithoutincident": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1787005362,
|
||||
"narHash": "sha256-VnpE5Tnq7Q4tTpNTJCWR9+SVEf6OZAgKBEROtGHD+lI=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "e5c54597c52f0344f696ec24c618710d2fa250ba",
|
||||
"revCount": 2,
|
||||
"type": "git",
|
||||
"url": "https://git.mizuki.guru/imnyang/cfwithoutincident.git"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "https://git.mizuki.guru/imnyang/cfwithoutincident.git"
|
||||
}
|
||||
},
|
||||
"codex-app": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
|
|
@ -762,6 +778,7 @@
|
|||
"inputs": {
|
||||
"amiaBot": "amiaBot",
|
||||
"catppuccin": "catppuccin",
|
||||
"cfwithoutincident": "cfwithoutincident",
|
||||
"codex-app": "codex-app",
|
||||
"darwin": "darwin",
|
||||
"home-manager": "home-manager",
|
||||
|
|
|
|||
|
|
@ -83,6 +83,11 @@
|
|||
url = "git+ssh://forgejo@mizuki.guru/imnyang/amia";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
cfwithoutincident = {
|
||||
url = "git+https://git.mizuki.guru/imnyang/cfwithoutincident.git";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
systemd.services.cfwithoutincident = {
|
||||
|
|
@ -11,13 +11,19 @@
|
|||
Type = "simple";
|
||||
User = "imnyang";
|
||||
Group = "users";
|
||||
WorkingDirectory = "/home/imnyang/git/imnyang/cfwithoutincident";
|
||||
WorkingDirectory = "/var/lib/cfwithoutincident";
|
||||
Environment = [
|
||||
"PORT=31774"
|
||||
];
|
||||
ExecStartPre = [
|
||||
"${pkgs.coreutils}/bin/cp -r ${inputs.cfwithoutincident}/. /var/lib/cfwithoutincident/"
|
||||
"${pkgs.bun}/bin/bun install --frozen-lockfile"
|
||||
];
|
||||
ExecStart = "${pkgs.bun}/bin/bun run src/index.ts";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
StateDirectory = "cfwithoutincident";
|
||||
StateDirectoryMode = "0755";
|
||||
};
|
||||
|
||||
path = [ pkgs.bun ];
|
||||
|
|
|
|||
Loading…
Reference in a new issue