cleanup
This commit is contained in:
parent
e10bdbca0b
commit
e5ecf9a4cf
4 changed files with 2 additions and 104 deletions
|
|
@ -1,33 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
setvcp = "${lib.meta.getExe pkgs.ddcutil} setvcp D6";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
hardware.i2c.enable = true;
|
|
||||||
systemd.services = {
|
|
||||||
monitor-off = rec {
|
|
||||||
script = "${setvcp} 05";
|
|
||||||
wantedBy = [
|
|
||||||
"sleep.target"
|
|
||||||
"final.target"
|
|
||||||
];
|
|
||||||
before = wantedBy;
|
|
||||||
|
|
||||||
serviceConfig.Type = "oneshot";
|
|
||||||
unitConfig.DefaultDependencies = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
monitor-on = rec {
|
|
||||||
script = "${setvcp} 01";
|
|
||||||
wantedBy = [
|
|
||||||
"sleep.target"
|
|
||||||
"multi-user.target"
|
|
||||||
];
|
|
||||||
after = wantedBy;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,60 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
|
||||||
client = config.services.matrix-continuwuity.settings.global.well_known.client;
|
|
||||||
domain = config.quad.matrix.domain;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
backfill.enabled = true;
|
|
||||||
|
|
||||||
homeserver = {
|
|
||||||
inherit domain;
|
|
||||||
address = client;
|
|
||||||
};
|
|
||||||
|
|
||||||
encryption = {
|
|
||||||
allow = true;
|
|
||||||
default = true;
|
|
||||||
pickle_key = "generate";
|
|
||||||
};
|
|
||||||
|
|
||||||
bridge.permissions = {
|
|
||||||
"${domain}" = "user";
|
|
||||||
"@quadradical:${domain}" = "admin";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.nix-matrix-appservices.nixosModule
|
|
||||||
];
|
|
||||||
|
|
||||||
services = {
|
|
||||||
# matrix-appservices.services.gmessages = {
|
|
||||||
# host = "127.0.0.5";
|
|
||||||
# serviceConfig.EnvironmentFile = config.age.secrets."gmessages.age".path;
|
|
||||||
# format = "mautrix-go";
|
|
||||||
# port = 8000;
|
|
||||||
# package = pkgs.mautrix-gmessages.override { withGoolm = true; };
|
|
||||||
# settings = settings // {
|
|
||||||
# appservice = {
|
|
||||||
# as_token = "$CUSTOM_AS_TOKEN";
|
|
||||||
# hs_token = "$CUSTOM_HS_TOKEN";
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
|
|
||||||
mautrix-whatsapp = {
|
|
||||||
enable = false;
|
|
||||||
package = pkgs.mautrix-whatsapp.override { withGoolm = true; };
|
|
||||||
settings = settings // {
|
|
||||||
appservice.hostname = "127.0.0.4";
|
|
||||||
};
|
|
||||||
environmentFile = config.age.secrets."whatsapp.age".path;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
sable = {
|
sable = {
|
||||||
url = "github:sableclient/sable/v1.20.0";
|
url = "github:sableclient/sable";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
stylix = {
|
stylix = {
|
||||||
|
|
@ -45,10 +45,6 @@
|
||||||
url = "git+https://git.federated.nexus/federated-nexus/nexusbot";
|
url = "git+https://git.federated.nexus/federated-nexus/nexusbot";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
nix-matrix-appservices = {
|
|
||||||
url = "gitlab:coffeetables/nix-matrix-appservices";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
agenix-cli = {
|
agenix-cli = {
|
||||||
url = "github:cole-h/agenix-cli";
|
url = "github:cole-h/agenix-cli";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
||||||
|
|
@ -34,12 +34,8 @@
|
||||||
|
|
||||||
new_user_displayname_suffix = "";
|
new_user_displayname_suffix = "";
|
||||||
|
|
||||||
default_room_version = "12";
|
forbidden_remote_server_names = [ ];
|
||||||
forbidden_remote_server_names = [
|
|
||||||
"freetard\\.net$" # racism, zip bomb attempts
|
|
||||||
];
|
|
||||||
ignore_messages_from_server_names = [ ];
|
ignore_messages_from_server_names = [ ];
|
||||||
allow_joining_broken_rooms = true;
|
|
||||||
|
|
||||||
trusted_servers = [
|
trusted_servers = [
|
||||||
"starstruck.systems"
|
"starstruck.systems"
|
||||||
|
|
@ -55,7 +51,6 @@
|
||||||
url_preview_max_spider_size = 2097152;
|
url_preview_max_spider_size = 2097152;
|
||||||
|
|
||||||
max_request_size = 256000000;
|
max_request_size = 256000000;
|
||||||
sender_workers = 4;
|
|
||||||
|
|
||||||
dns_cache_entries = 0;
|
dns_cache_entries = 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue