move bridge overlay to overlays
This commit is contained in:
parent
936659300b
commit
730195c67c
5 changed files with 21 additions and 79 deletions
|
@ -8,28 +8,6 @@ let
|
||||||
bridge_port = 9005; # netstat -nlp | grep 9005
|
bridge_port = 9005; # netstat -nlp | grep 9005
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [
|
|
||||||
(final: prev: {
|
|
||||||
matrix-appservice-discord = prev.matrix-appservice-discord.overrideAttrs (old: {
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "t2bot";
|
|
||||||
repo = "matrix-appservice-discord";
|
|
||||||
rev = "8361ca6121bf1f0902154baa538cb6d5766e477f";
|
|
||||||
hash = "sha256-oXon6pFJgqQ1uBLtsSVNH7XSOpxxJYqpW2n9cFrs3sU=";
|
|
||||||
};
|
|
||||||
patches =
|
|
||||||
(
|
|
||||||
let
|
|
||||||
oldPatches = old.patches or [ ];
|
|
||||||
in
|
|
||||||
if oldPatches == null then [ ] else oldPatches
|
|
||||||
)
|
|
||||||
++ [ ./patch_bridge_perms.patch ];
|
|
||||||
doCheck = false;
|
|
||||||
});
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
age.secrets.matrix_discord_bridge_token.file = ../secrets/matrix_discord_bridge_token.age;
|
age.secrets.matrix_discord_bridge_token.file = ../secrets/matrix_discord_bridge_token.age;
|
||||||
|
|
||||||
services.matrix-synapse-next.settings.app_service_config_files = [
|
services.matrix-synapse-next.settings.app_service_config_files = [
|
||||||
|
|
|
@ -1,57 +0,0 @@
|
||||||
{ config, pkgs, ... }:
|
|
||||||
let
|
|
||||||
git_user = "Grimmauld";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
(writeShellScriptBin "silent-add" "git add --intent-to-add $@ ; git update-index --assume-unchanged $@")
|
|
||||||
(writeShellScriptBin "systemd-owner" "systemctl show -pUser,UID $@")
|
|
||||||
(writeShellScriptBin "nix-referrers" "nix-store --query --referrers $@")
|
|
||||||
mkpasswd
|
|
||||||
node2nix
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
lfs.enable = true;
|
|
||||||
config = {
|
|
||||||
init.defaultBranch = "main";
|
|
||||||
credential.username = git_user;
|
|
||||||
core.editor = "${pkgs.neovim}/bin/nvim";
|
|
||||||
user.name = git_user;
|
|
||||||
user.email = "${git_user}@grimmauld.de";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.tmux = {
|
|
||||||
enable = true;
|
|
||||||
historyLimit = 42000;
|
|
||||||
#keyMode = "vi";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.neovim = {
|
|
||||||
enable = true;
|
|
||||||
viAlias = true;
|
|
||||||
defaultEditor = true;
|
|
||||||
configure = {
|
|
||||||
customRC = ''
|
|
||||||
set number
|
|
||||||
set hidden
|
|
||||||
set nocompatible
|
|
||||||
'';
|
|
||||||
packages.myVimPackage = with pkgs.vimPlugins; {
|
|
||||||
# loaded on launch
|
|
||||||
start = [
|
|
||||||
vim-nix
|
|
||||||
vim-scala
|
|
||||||
fugitive
|
|
||||||
autoclose-nvim
|
|
||||||
];
|
|
||||||
# manually loadable by calling `:packadd $plugin-name`
|
|
||||||
opt = [ ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.xonsh.enable = true;
|
|
||||||
}
|
|
|
@ -17,6 +17,7 @@
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
[
|
[
|
||||||
|
./matrix-appservice-discord.nix
|
||||||
./deskwhich.nix
|
./deskwhich.nix
|
||||||
./mcontrolcenter.nix
|
./mcontrolcenter.nix
|
||||||
./the-powder-toy.nix
|
./the-powder-toy.nix
|
||||||
|
|
20
overlays/matrix-appservice-discord.nix
Normal file
20
overlays/matrix-appservice-discord.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{ final, prev, ... }:
|
||||||
|
{
|
||||||
|
matrix-appservice-discord = prev.matrix-appservice-discord.overrideAttrs (old: {
|
||||||
|
src = prev.fetchFromGitHub {
|
||||||
|
owner = "t2bot";
|
||||||
|
repo = "matrix-appservice-discord";
|
||||||
|
rev = "8361ca6121bf1f0902154baa538cb6d5766e477f";
|
||||||
|
hash = "sha256-oXon6pFJgqQ1uBLtsSVNH7XSOpxxJYqpW2n9cFrs3sU=";
|
||||||
|
};
|
||||||
|
patches =
|
||||||
|
(
|
||||||
|
let
|
||||||
|
oldPatches = old.patches or [ ];
|
||||||
|
in
|
||||||
|
if oldPatches == null then [ ] else oldPatches
|
||||||
|
)
|
||||||
|
++ [ ./patches/bridge_perms.patch ];
|
||||||
|
doCheck = false;
|
||||||
|
});
|
||||||
|
}
|
Loading…
Reference in a new issue