fix: now actually properly gets teh skynet server details
This commit is contained in:
parent
69cb8e9a3f
commit
36e6bea543
2 changed files with 18 additions and 54 deletions
37
flake.nix
37
flake.nix
|
@ -46,16 +46,11 @@
|
|||
cfg = config.services."${package_name}";
|
||||
# secret options are in the env file(s) loaded separately
|
||||
environment_config = {
|
||||
DISCORD_SERVER = cfg.discord.server;
|
||||
DISCORD_ROLE_CURRENT = cfg.discord.role.current;
|
||||
DISCORD_ROLE_PAST = cfg.discord.role.past;
|
||||
LDAP_API = cfg.ldap;
|
||||
DISCORD_TIMING_UPDATE = cfg.discord.timing.update;
|
||||
DISCORD_TIMING_FETCH = cfg.discord.timing.fetch;
|
||||
|
||||
# local details
|
||||
HOME = cfg.home;
|
||||
DATABASE = "database.db";
|
||||
LDAP_API = cfg.ldap;
|
||||
SKYNET_SERVER = cfg.discord.server;
|
||||
HOME = cfg.home;
|
||||
DATABASE = "database.db";
|
||||
CSV = "wolves.csv";
|
||||
};
|
||||
|
||||
service_name = script: lib.strings.sanitizeDerivationName("${cfg.user}@${script}");
|
||||
|
@ -125,28 +120,6 @@
|
|||
type = types.str;
|
||||
description = "ID of the server the bot runs on";
|
||||
};
|
||||
role = {
|
||||
past = mkOption rec {
|
||||
type = types.str;
|
||||
description = "ID of the role to apply to all members";
|
||||
};
|
||||
current = mkOption rec {
|
||||
type = types.str;
|
||||
description = "ID of the role to applt to only current members";
|
||||
};
|
||||
};
|
||||
timing = {
|
||||
update = mkOption rec {
|
||||
type = types.str;
|
||||
default = "600";
|
||||
description = "Time in seconds to update member roles";
|
||||
};
|
||||
fetch = mkOption rec {
|
||||
type = types.str;
|
||||
default = "300";
|
||||
description = "Time in seconds to get current users";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ldap = mkOption rec {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue