daily checkpoint
This commit is contained in:
parent
cc86b0a815
commit
2ffece26f2
15 changed files with 451 additions and 63 deletions
0
clanServices/peristence/README.md
Normal file
0
clanServices/peristence/README.md
Normal file
35
clanServices/peristence/default.nix
Normal file
35
clanServices/peristence/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{...}: {
|
||||
_class = "clan.service";
|
||||
manifest = {
|
||||
name = "arda/persistence";
|
||||
description = ''
|
||||
Configuration of persistence resrouce(s)
|
||||
(for now this means a database. and specifically it means postgres)
|
||||
'';
|
||||
readme = builtins.readFile ./README.md;
|
||||
exports.out = ["persistence"];
|
||||
};
|
||||
|
||||
roles.default = {
|
||||
description = '''';
|
||||
|
||||
interface = {...}: {
|
||||
options = {};
|
||||
};
|
||||
|
||||
perInstance = {mkExports, ...}: {
|
||||
exports = mkExports {
|
||||
persistence = {
|
||||
main = "postgresql";
|
||||
database.postgresql = {
|
||||
host = "";
|
||||
port = 5432;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nixosModule = {...}: {
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
13
clanServices/peristence/flake-module.nix
Normal file
13
clanServices/peristence/flake-module.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{...}: let
|
||||
module = ./default.nix;
|
||||
in {
|
||||
clan.modules.persistence = module;
|
||||
|
||||
# perSystem = {...}: {
|
||||
# clan.nixosTests.persistence = {
|
||||
# imports = [];
|
||||
|
||||
# clan.modules."@arda/persistence" = module;
|
||||
# };
|
||||
# };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue