wow
This commit is contained in:
parent
96507a547d
commit
423b918222
3 changed files with 14 additions and 6 deletions
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -3,11 +3,11 @@
|
||||||
"amiaBot": {
|
"amiaBot": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1785042989,
|
"lastModified": 1785044289,
|
||||||
"narHash": "sha256-TlHpxphcl8Zt05EiVrQc0uivLfEv5gTDjJGKXAgjOnA=",
|
"narHash": "sha256-OIw3qWHojYrvGjNrwFsmXVkQA8Pb/uxfymqbA6YJ1C0=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "ca6859698c8decba301842e26125d59d132ae1c7",
|
"rev": "152df1032c27e61cb0b70e2b5f7da5b9d15913f1",
|
||||||
"revCount": 5,
|
"revCount": 6,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "ssh://forgejo@mizuki.guru/imnyang/amia"
|
"url": "ssh://forgejo@mizuki.guru/imnyang/amia"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,9 @@ with pkgs;
|
||||||
davinci-resolve
|
davinci-resolve
|
||||||
kdePackages.kdenlive
|
kdePackages.kdenlive
|
||||||
|
|
||||||
|
android-tools
|
||||||
|
android-cli
|
||||||
|
|
||||||
# waterfox-bin
|
# waterfox-bin
|
||||||
# inputs.waterfox.packages.${pkgs.system}.waterfox
|
# inputs.waterfox.packages.${pkgs.system}.waterfox
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, inputs, ... }:
|
{ pkgs, inputs, ... }:
|
||||||
let
|
let
|
||||||
amiaBot = pkgs.rustPlatform.buildRustPackage {
|
amiaBot = pkgs.rustPlatform.buildRustPackage {
|
||||||
pname = "discord-profile-widget-bot";
|
pname = "amia";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
src = inputs.amiaBot;
|
src = inputs.amiaBot;
|
||||||
cargoLock.lockFile = "${inputs.amiaBot}/Cargo.lock";
|
cargoLock.lockFile = "${inputs.amiaBot}/Cargo.lock";
|
||||||
|
|
@ -26,6 +26,8 @@ in
|
||||||
neovim
|
neovim
|
||||||
nil
|
nil
|
||||||
nixd
|
nixd
|
||||||
|
bind
|
||||||
|
dig
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.git.config = {
|
programs.git.config = {
|
||||||
|
|
@ -42,13 +44,16 @@ in
|
||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
unitConfig.ConditionPathExists = "/home/imnyang/amia/config.toml";
|
unitConfig.ConditionPathExists = "/home/imnyang/amia/config.toml";
|
||||||
|
path = [
|
||||||
|
pkgs.bind.dnsutils
|
||||||
|
];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "imnyang";
|
User = "imnyang";
|
||||||
WorkingDirectory = "/home/imnyang/amia";
|
WorkingDirectory = "/home/imnyang/amia";
|
||||||
UMask = "0077";
|
UMask = "0077";
|
||||||
ExecStart = "${amiaBot}/bin/discord-profile-widget-bot";
|
ExecStart = "${amiaBot}/bin/amia";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "5s";
|
RestartSec = "5s";
|
||||||
NoNewPrivileges = true;
|
NoNewPrivileges = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue