2024-08-16 08:31:35 +00:00
|
|
|
{ configs, pkgs, ... }:
|
|
|
|
{
|
2024-08-16 08:22:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
home.username = "vic";
|
|
|
|
home.homeDirectory = "/home/vic";
|
|
|
|
|
|
|
|
|
|
|
|
home.packages = [
|
|
|
|
pkgs.helix
|
2024-08-16 08:27:03 +00:00
|
|
|
];
|
2024-08-16 08:22:12 +00:00
|
|
|
|
|
|
|
home.stateVersion = "24.05";
|
|
|
|
home.sessionVariables = {
|
|
|
|
EDITOR = "hx";
|
|
|
|
VISUAL = "hx";
|
|
|
|
PAGER = "less";
|
|
|
|
};
|
|
|
|
|
|
|
|
home.file = {
|
|
|
|
".config/redis/redis.conf" = {
|
|
|
|
source = ./redis/redis.conf;
|
|
|
|
};
|
2024-08-16 08:27:32 +00:00
|
|
|
};
|
2024-08-16 08:22:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
home.file = {
|
|
|
|
"Hackey/Sharkey/.config/default.yml" = {
|
|
|
|
source = ./Hackey/default.yml;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
systemd.user.services = {
|
|
|
|
|
|
|
|
Hackey = {
|
|
|
|
Unit = {
|
|
|
|
Description = "Hackey instance";
|
|
|
|
After = [ "network-online.target" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
Service = {
|
|
|
|
Type = "simple";
|
|
|
|
ExecStart = "pnpm start";
|
2024-08-16 08:30:34 +00:00
|
|
|
WorkingDirectory = "/home/vic/Hackey/Sharkey";
|
2024-08-16 08:35:40 +00:00
|
|
|
Enviroment = [
|
|
|
|
"NODE_ENV=production"
|
|
|
|
"NODE_OPTIONS=--max-old-space-size=2048"
|
|
|
|
"MK_CONFIG_DB_PASS_FILE=/home/vic/.config/pass"
|
|
|
|
];
|
2024-08-16 08:22:12 +00:00
|
|
|
SyslogIdentifier = "hackey";
|
|
|
|
Restart = "always";
|
|
|
|
TimeoutSec = 60;
|
|
|
|
};
|
|
|
|
|
|
|
|
Install = {
|
|
|
|
WantedBy = [ "default.target" ];
|
|
|
|
};
|
|
|
|
|
2024-08-16 08:27:32 +00:00
|
|
|
};
|
2024-08-16 08:22:12 +00:00
|
|
|
|
2024-08-16 08:27:32 +00:00
|
|
|
};
|
2024-08-16 08:22:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
|
2024-08-16 08:31:35 +00:00
|
|
|
}
|