add valent

This commit is contained in:
Henry Hiles 2025-08-02 09:40:31 -04:00
commit 461bbb1967
No known key found for this signature in database
8 changed files with 105 additions and 3 deletions

View file

@ -0,0 +1,22 @@
{
inputs,
config,
...
}: {
imports = [inputs.nexusbot.nixosModules.default];
services = let
socket = "/var/run/nexusbot/socket";
domain = "register.federated.nexus";
in {
nexusbot = {
enable = true;
botPasswordFile = config.age.secrets."botPassword.age".path;
smtpPasswordFile = config.age.secrets."smtpPassword.age".path;
args = ["--socket" socket "--homeserver" config.services.grapevine.settings.server_discovery.client.base_url "--name" "nexusbot" "--inviteTo" "#community:federated.nexus" "--adminRoom" "#admins:federated.nexus" "--successUri" "https://federated.nexus/success"];
group = "caddy";
};
caddy.virtualHosts."${domain}".extraConfig = "reverse_proxy unix/${socket}";
};
}

61
flake.lock generated
View file

@ -838,6 +838,24 @@
}
},
"flake-parts_5": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_4"
},
"locked": {
"lastModified": 1749398372,
"narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_6": {
"inputs": {
"nixpkgs-lib": [
"sdm845",
@ -858,7 +876,7 @@
"type": "github"
}
},
"flake-parts_6": {
"flake-parts_7": {
"inputs": {
"nixpkgs-lib": [
"stylix",
@ -1653,6 +1671,27 @@
"type": "github"
}
},
"nexusbot": {
"inputs": {
"flake-parts": "flake-parts_5",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1754080381,
"narHash": "sha256-GUtSLCJ3dAnV6aQBuHUptsmM22qQiXIpv2M5QcSQ62w=",
"ref": "refs/heads/main",
"rev": "74a634c642f74c3ec165d77f4b5dcb9247fdae53",
"revCount": 6,
"type": "git",
"url": "https://git.federated.nexus/federated-nexus/nexusbot"
},
"original": {
"type": "git",
"url": "https://git.federated.nexus/federated-nexus/nexusbot"
}
},
"niri-flake": {
"inputs": {
"niri-stable": [
@ -2232,6 +2271,21 @@
"type": "github"
}
},
"nixpkgs-lib_4": {
"locked": {
"lastModified": 1748740939,
"narHash": "sha256-rQaysilft1aVMwF14xIdGS3sj1yHlI6oKQNBRTF40cc=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "656a64127e9d791a334452c6b6606d17539476e2",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs-riscv": {
"locked": {
"lastModified": 1752147015,
@ -2601,6 +2655,7 @@
"home-manager": "home-manager_2",
"lasuite-docs-proxy": "lasuite-docs-proxy",
"matrixoidc": "matrixoidc",
"nexusbot": "nexusbot",
"nix-matrix-appservices": "nix-matrix-appservices",
"nixpkgs": "nixpkgs_2",
"ooye": "ooye",
@ -2727,7 +2782,7 @@
"emacs-overlay": "emacs-overlay",
"fenix": "fenix_2",
"flake-compat": "flake-compat_5",
"flake-parts": "flake-parts_5",
"flake-parts": "flake-parts_6",
"flake-schemas": "flake-schemas",
"flake-utils": "flake-utils_4",
"flake-utils-plus": "flake-utils-plus",
@ -2822,7 +2877,7 @@
"base16-helix": "base16-helix",
"base16-vim": "base16-vim",
"firefox-gnome-theme": "firefox-gnome-theme_2",
"flake-parts": "flake-parts_6",
"flake-parts": "flake-parts_7",
"gnome-shell": "gnome-shell",
"nixpkgs": [
"nixpkgs"

View file

@ -32,6 +32,10 @@
url = "git+https://git.federated.nexus/Henry-Hiles/lasuite_docs_proxy";
inputs.nixpkgs.follows = "nixpkgs";
};
nexusbot = {
url = "git+https://git.federated.nexus/federated-nexus/nexusbot";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-matrix-appservices = {
url = "gitlab:coffeetables/nix-matrix-appservices";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -8,6 +8,7 @@
sessionVariables.XDG_CURRENT_DESKTOP = "GNOME";
systemPackages = with pkgs.gnomeExtensions; [
valent
caffeine
pop-shell
appindicator
@ -34,6 +35,7 @@
gnome-console
gnome-software
gnome-characters
gnome-connections
gnome-text-editor
gnome-system-monitor
];

10
secrets/botPassword.age Normal file
View file

@ -0,0 +1,10 @@
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IFZLUVVkUSBoVHkz
NkVudWNTemZFWHpRQWxzeHNta2ozK3JvbXB5NXRqdnBmeU4rYXlzCjdSL0tWd3E3
a1JGNHp4NjU1bll5eDZtRk5uYUJUVXRNY3B5Sk9vMmJQRGMKLT4gaDNqLWdyZWFz
ZSAhYHoqRWAhJSBdLj11JyBveV8KRDRTYzlEU21KM0NLZklXeWdzdE5jSzZHZVBV
U0k1R0tBbzlJbVVaeFZsRHZtck9MMW5zb05qN2t3SGFSTjFEcQoxQlFFCi0tLSBL
WklLRzkvd0JFZEJ6VURVTnNhenhoejVVNGhXblA3eGtPMGVMbldnOVlJCuD/6vJ4
YBu7SYqR3AQ10SAbd7Dn4Ze/gfO8u1I2hegQa8p0I4Iu+1Grs1V9qwNiXX8qpLfy
wklk1LIeDWr1Kn7f
-----END AGE ENCRYPTED FILE-----

9
secrets/smtpPassword.age Normal file
View file

@ -0,0 +1,9 @@
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IFZLUVVkUSBvYlEw
TE54bDNBNEhQWkp3OThKOWJxVkltVGRaOThiTmQrbXgreVkrZ3hVCmJGQVNMTk8r
eU9lM1pYS0lVUXVJaURXc0tDem5DU0UxcUMydmtyNFVaeFUKLT4gQ1xCM2woPT0t
Z3JlYXNlIEAKSHhsOUt5My9OYVNSdXJrb0loYzl5MEpTcWdNcDJnZ1IzWk9xbXpw
akc5cHgKLS0tIHg5YjQ3d3VyZ3dQWG1sVWlYL3lqUUt2UndpVlV1NEo3eENiUnJE
Ry83RlkKr7Q6I67w7sLxayT8qPgiGyLbGaHCIIttc2Zhd832xcKopkA1+9aB/9fY
nQ==
-----END AGE ENCRYPTED FILE-----