luckperms Config is now nixified AND uses SOPS secrets
All checks were successful
/ Check Nix Flake (push) Successful in 1m46s
All checks were successful
/ Check Nix Flake (push) Successful in 1m46s
This commit is contained in:
parent
eb76d220f4
commit
7303d173ec
1 changed files with 8 additions and 10 deletions
|
@ -60,16 +60,14 @@ in
|
||||||
|
|
||||||
# Configure Plugin Luckperms
|
# 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".path = "/srv/minecraft/velocity/plugins/luckperms/config.yml";
|
||||||
sops.templates."minecraft/velocity/plugin/luckperms/config.yml".content = ''
|
sops.templates."minecraft/velocity/plugin/luckperms/config.yml".owner = config.services.minecraft-servers.user;
|
||||||
storage-method: mariadb
|
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
|
||||||
data:
|
storage-method = "mariadb";
|
||||||
address: localhost:${toString config.services.mysql.settings.mysqld.port}
|
data.address = "localhost:${toString config.services.mysql.settings.mysqld.port}";
|
||||||
database: luckperms
|
data.database = "luckperms";
|
||||||
username: luckperms
|
data.username = "luckperms";
|
||||||
password: ${config.sops.placeholder."minecraft/database/luckperms_password"}
|
data.password = ''${config.sops.placeholder."minecraft/database/luckperms_password"}''; # Secret created in ./database.nix
|
||||||
'';
|
};
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue