Compare commits

..

No commits in common. "5a217c9f80f7988630a126a3807fad2611ca8789" and "b5c2a7c59fcd2408d26eaf195ec84f80bfca9f54" have entirely different histories.

3 changed files with 41 additions and 80 deletions

View file

@ -1,37 +0,0 @@
{ 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" ];
};
};
};
}

View file

@ -1,10 +1,5 @@
{ configs, pkgs, ... }:
{
{ configs, pkgs }: {
imports = [
./redis/Redis.nix
./Hackey/Hackey.nix
];
home.username = "vic";
@ -12,8 +7,7 @@
home.packages = [
pkgs.helix #editor
pkgs.bat #modern cat
pkgs.helix
];
home.stateVersion = "24.05";
@ -23,11 +17,49 @@
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";
MK_CONFIG_DB_PASS_FILE="${home.homeDirectory}/.config/pass";
};
SyslogIdentifier = "hackey";
Restart = "always";
TimeoutSec = 60;
};
Install = {
WantedBy = [ "default.target" ];
};
}
}
programs.home-manager.enable = true;

View file

@ -1,34 +0,0 @@
{ pkgs, ... }:
{
home.file = {
".config/redis/redis.conf" = {
source = ./redis.conf;
};
};
systemd.user.services = {
Redis = {
Unit = {
Description = "Vic's redis";
After = [ "network-online.target" ];
};
Service = {
Type = "simple";
ExecStart = "redis-server .config/redis/redis.conf";
SyslogIdentifier = "hackey";
Restart = "always";
TimeoutSec = 0;
};
Install = {
WantedBy = [ "default.target" ];
};
};
};
}