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"
|
"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": {
|
"codex-app": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
|
|
@ -762,6 +778,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"amiaBot": "amiaBot",
|
"amiaBot": "amiaBot",
|
||||||
"catppuccin": "catppuccin",
|
"catppuccin": "catppuccin",
|
||||||
|
"cfwithoutincident": "cfwithoutincident",
|
||||||
"codex-app": "codex-app",
|
"codex-app": "codex-app",
|
||||||
"darwin": "darwin",
|
"darwin": "darwin",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,11 @@
|
||||||
url = "git+ssh://forgejo@mizuki.guru/imnyang/amia";
|
url = "git+ssh://forgejo@mizuki.guru/imnyang/amia";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
cfwithoutincident = {
|
||||||
|
url = "git+https://git.mizuki.guru/imnyang/cfwithoutincident.git";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ inputs, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
systemd.services.cfwithoutincident = {
|
systemd.services.cfwithoutincident = {
|
||||||
|
|
@ -11,13 +11,19 @@
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "imnyang";
|
User = "imnyang";
|
||||||
Group = "users";
|
Group = "users";
|
||||||
WorkingDirectory = "/home/imnyang/git/imnyang/cfwithoutincident";
|
WorkingDirectory = "/var/lib/cfwithoutincident";
|
||||||
Environment = [
|
Environment = [
|
||||||
"PORT=31774"
|
"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";
|
ExecStart = "${pkgs.bun}/bin/bun run src/index.ts";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 5;
|
RestartSec = 5;
|
||||||
|
StateDirectory = "cfwithoutincident";
|
||||||
|
StateDirectoryMode = "0755";
|
||||||
};
|
};
|
||||||
|
|
||||||
path = [ pkgs.bun ];
|
path = [ pkgs.bun ];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue