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

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;