This commit is contained in:
암냥 2026-07-26 17:14:54 +09:00
commit 423b918222
No known key found for this signature in database
3 changed files with 14 additions and 6 deletions

8
flake.lock generated
View file

@ -3,11 +3,11 @@
"amiaBot": {
"flake": false,
"locked": {
"lastModified": 1785042989,
"narHash": "sha256-TlHpxphcl8Zt05EiVrQc0uivLfEv5gTDjJGKXAgjOnA=",
"lastModified": 1785044289,
"narHash": "sha256-OIw3qWHojYrvGjNrwFsmXVkQA8Pb/uxfymqbA6YJ1C0=",
"ref": "refs/heads/main",
"rev": "ca6859698c8decba301842e26125d59d132ae1c7",
"revCount": 5,
"rev": "152df1032c27e61cb0b70e2b5f7da5b9d15913f1",
"revCount": 6,
"type": "git",
"url": "ssh://forgejo@mizuki.guru/imnyang/amia"
},

View file

@ -15,6 +15,9 @@ with pkgs;
davinci-resolve
kdePackages.kdenlive
android-tools
android-cli
# waterfox-bin
# inputs.waterfox.packages.${pkgs.system}.waterfox
]

View file

@ -1,7 +1,7 @@
{ pkgs, inputs, ... }:
let
amiaBot = pkgs.rustPlatform.buildRustPackage {
pname = "discord-profile-widget-bot";
pname = "amia";
version = "0.1.0";
src = inputs.amiaBot;
cargoLock.lockFile = "${inputs.amiaBot}/Cargo.lock";
@ -26,6 +26,8 @@ in
neovim
nil
nixd
bind
dig
];
programs.git.config = {
@ -42,13 +44,16 @@ in
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
unitConfig.ConditionPathExists = "/home/imnyang/amia/config.toml";
path = [
pkgs.bind.dnsutils
];
serviceConfig = {
Type = "simple";
User = "imnyang";
WorkingDirectory = "/home/imnyang/amia";
UMask = "0077";
ExecStart = "${amiaBot}/bin/discord-profile-widget-bot";
ExecStart = "${amiaBot}/bin/amia";
Restart = "on-failure";
RestartSec = "5s";
NoNewPrivileges = true;