mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-09-20 00:59:04 +05:30
refactor(services): standardize service module options
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
dataDir = mkOption {
|
||||
type = types.path;
|
||||
default = "/var/lib/cyber-tux";
|
||||
description = "Directory where CyberTux stores its data.";
|
||||
description = "Directory where CyberTux stores its data (must be under /var/lib).";
|
||||
};
|
||||
|
||||
environmentFile = mkOption {
|
||||
@@ -41,7 +41,8 @@
|
||||
config = mkIf cfg.enable {
|
||||
systemd.services.cyber-tux = {
|
||||
description = "CyberTux Discord bot";
|
||||
after = [ "network.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
|
||||
Reference in New Issue
Block a user