66 lines
1.1 KiB
Nix
66 lines
1.1 KiB
Nix
|
{ configs, pkgs }: {
|
||
|
|
||
|
|
||
|
|
||
|
home.username = "vic";
|
||
|
home.homeDirectory = "/home/vic";
|
||
|
|
||
|
|
||
|
home.packages = [
|
||
|
pkgs.helix
|
||
|
]
|
||
|
|
||
|
home.stateVersion = "24.05";
|
||
|
home.sessionVariables = {
|
||
|
EDITOR = "hx";
|
||
|
VISUAL = "hx";
|
||
|
PAGER = "less";
|
||
|
};
|
||
|
|
||
|
home.file = {
|
||
|
".config/redis/redis.conf" = {
|
||
|
source = ./redis/redis.conf;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
|
||
|
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";
|
||
|
WorkingDirectory = "${home.homeDirectory}/Hackey/Sharkey";
|
||
|
Enviroment = {
|
||
|
NODE_ENV = "production";
|
||
|
NODE_OPTIONS = "--max-old-space-size=2048";
|
||
|
};
|
||
|
SyslogIdentifier = "hackey";
|
||
|
Restart = "always";
|
||
|
TimeoutSec = 60;
|
||
|
};
|
||
|
|
||
|
Install = {
|
||
|
WantedBy = [ "default.target" ];
|
||
|
};
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
programs.home-manager.enable = true;
|
||
|
|
||
|
}
|