37 lines
767 B
Nix
37 lines
767 B
Nix
|
{ pkgs, ...}:{
|
||
|
|
||
|
|
||
|
home.file = {
|
||
|
"Hackey/Sharkey/.config/default.yml" = {
|
||
|
source = ./default.yml;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
systemd.user.services = {
|
||
|
Hackey = {
|
||
|
Unit = {
|
||
|
Description = "Hackey instance";
|
||
|
After = [ "network-online.target" ];
|
||
|
};
|
||
|
|
||
|
Service = {
|
||
|
Type = "simple";
|
||
|
ExecStart = "pnpm start";
|
||
|
WorkingDirectory = "/home/vic/Hackey/Sharkey";
|
||
|
Environment = [
|
||
|
"NODE_ENV=production"
|
||
|
"NODE_OPTIONS=--max-old-space-size=2048"
|
||
|
"MK_CONFIG_DB_PASS_FILE=/home/vic/.config/pass"
|
||
|
];
|
||
|
SyslogIdentifier = "hackey";
|
||
|
Restart = "always";
|
||
|
TimeoutSec = 60;
|
||
|
};
|
||
|
|
||
|
Install = {
|
||
|
WantedBy = [ "default.target" ];
|
||
|
};
|
||
|
|
||
|
};
|
||
|
};
|
||
|
}
|