Add fmatrix
This commit is contained in:
parent
0edf951800
commit
5b3e8d763c
5 changed files with 46 additions and 4 deletions
30
flake.lock
generated
30
flake.lock
generated
|
|
@ -204,6 +204,27 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"fmatrix": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1771172395,
|
||||
"narHash": "sha256-Ggyg2unbZ+kJf+jataitUNUjs8zEL1UFGCZR1RErrLI=",
|
||||
"owner": "zerw0",
|
||||
"repo": "fmatrix",
|
||||
"rev": "743a0751dfb9b97cba7db8283766a4410d565c3e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "zerw0",
|
||||
"repo": "fmatrix",
|
||||
"rev": "743a0751dfb9b97cba7db8283766a4410d565c3e",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
|
@ -587,6 +608,7 @@
|
|||
"alga": "alga",
|
||||
"autoaspm": "autoaspm",
|
||||
"flake-parts": "flake-parts",
|
||||
"fmatrix": "fmatrix",
|
||||
"home-manager": "home-manager_2",
|
||||
"home-manager-unstable": "home-manager-unstable",
|
||||
"invoiceplane": "invoiceplane",
|
||||
|
|
@ -605,11 +627,11 @@
|
|||
"secrets": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1767001202,
|
||||
"narHash": "sha256-bilGWLzKCHrWGTfgXJ2UbgJO6aZNYelTztD16RrZxn4=",
|
||||
"lastModified": 1771167009,
|
||||
"narHash": "sha256-m0yUx3UKmyq8UTsVHg4lrBVoqGs0g8yKZsZgDtGaIw8=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "e834973d19c6b899ba3974940277322a76f8781b",
|
||||
"revCount": 112,
|
||||
"rev": "f18d89b68c1171dab8ecd7e6bf128ddfab0e56b9",
|
||||
"revCount": 113,
|
||||
"type": "git",
|
||||
"url": "ssh://forgejo@git.notthebe.ee:69/notthebee/nix-private.git"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -36,6 +36,10 @@
|
|||
url = "git+https://git.notthebe.ee/notthebee/AutoASPM";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
fmatrix = {
|
||||
url = "github:zerw0/fmatrix/743a0751dfb9b97cba7db8283766a4410d565c3e";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
agenix = {
|
||||
url = "github:ryantm/agenix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ in
|
|||
self.inputs.agenix.nixosModules.default
|
||||
self.inputs.adios-bot.nixosModules.default
|
||||
self.inputs.autoaspm.nixosModules.default
|
||||
self.inputs.fmatrix.nixosModules.default
|
||||
self.inputs.invoiceplane.nixosModules.default
|
||||
self.inputs."home-manager${
|
||||
lib.attrsets.attrByPath [ name ] "" nixpkgsMap
|
||||
|
|
|
|||
|
|
@ -26,6 +26,19 @@
|
|||
environmentFile = config.homelab.cloudflare.dnsCredentialsFile;
|
||||
};
|
||||
};
|
||||
services.fmatrix =
|
||||
let
|
||||
url = config.homelab.baseDomain;
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
matrix = {
|
||||
homeserver = "https://${config.homelab.services.matrix.url}";
|
||||
userId = "@fmbot:${url}";
|
||||
};
|
||||
settings.autoJoinRooms = [ "#music:${url}" ];
|
||||
secretsFile = config.age.secrets.fmatrixSecretsFile.path;
|
||||
};
|
||||
homelab = {
|
||||
baseDomain = "notthebe.ee";
|
||||
cloudflare.dnsCredentialsFile = config.age.secrets.cloudflareDnsApiCredentialsNotthebee.path;
|
||||
|
|
@ -51,6 +64,7 @@
|
|||
registrationSecretFile = config.age.secrets.matrixRegistrationSecret.path;
|
||||
enable = true;
|
||||
};
|
||||
|
||||
plausible = {
|
||||
enable = true;
|
||||
secretKeybaseFile = config.age.secrets.plausibleSecretKeybaseFile.path;
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
group = lib.mkForce "forgejo";
|
||||
mode = "0440";
|
||||
};
|
||||
fmatrixSecretsFile.file = "${inputs.secrets}/fmatrixSecretsFile.age";
|
||||
cloudflareDnsApiCredentialsNotthebee.file = "${inputs.secrets}/cloudflareDnsApiCredentialsNotthebee.age";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue