mirror of
https://git.kb-one.de/kb01/aux-config.git
synced 2025-12-05 18:28:53 +00:00
luckperms Config is now nixified AND uses SOPS secrets
Some checks are pending
/ Check Nix Flake (push) Waiting to run
Some checks are pending
/ Check Nix Flake (push) Waiting to run
This commit is contained in:
parent
eb76d220f4
commit
7303d173ec
|
|
@ -60,16 +60,14 @@ in
|
|||
|
||||
# Configure Plugin Luckperms
|
||||
sops.templates."minecraft/velocity/plugin/luckperms/config.yml".path = "/srv/minecraft/velocity/plugins/luckperms/config.yml";
|
||||
sops.templates."minecraft/velocity/plugin/luckperms/config.yml".content = ''
|
||||
storage-method: mariadb
|
||||
data:
|
||||
address: localhost:${toString config.services.mysql.settings.mysqld.port}
|
||||
database: luckperms
|
||||
username: luckperms
|
||||
password: ${config.sops.placeholder."minecraft/database/luckperms_password"}
|
||||
'';
|
||||
|
||||
|
||||
sops.templates."minecraft/velocity/plugin/luckperms/config.yml".owner = config.services.minecraft-servers.user;
|
||||
sops.templates."minecraft/velocity/plugin/luckperms/config.yml".content = lib.generators.toYAML { } { # Unfortunately currently lib.generators.toYAML generates JSON, and the File will not be Human readable
|
||||
storage-method = "mariadb";
|
||||
data.address = "localhost:${toString config.services.mysql.settings.mysqld.port}";
|
||||
data.database = "luckperms";
|
||||
data.username = "luckperms";
|
||||
data.password = ''${config.sops.placeholder."minecraft/database/luckperms_password"}''; # Secret created in ./database.nix
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue