mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
style: alejandra, deadnix, statix
This commit is contained in:
parent
2e7ee0e4ca
commit
17c69c99de
78 changed files with 1051 additions and 878 deletions
|
|
@ -1,24 +1,27 @@
|
|||
{ config, pkgs, ... }: {
|
||||
sops.secrets.synapse-cleanup-environment = {
|
||||
sopsFile = ./secrets.yaml;
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
sops.secrets.synapse-cleanup-environment = {
|
||||
sopsFile = ./secrets.yaml;
|
||||
};
|
||||
systemd = {
|
||||
services.synapse-cleanup = {
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
EnvironmentFile = config.sops.secrets.synapse-cleanup-environment.path;
|
||||
ExecStart = "${pkgs.synapse-cleanup}/bin/synapse-cleanup";
|
||||
};
|
||||
};
|
||||
systemd = {
|
||||
services.synapse-cleanup = {
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
EnvironmentFile = config.sops.secrets.synapse-cleanup-environment.path;
|
||||
ExecStart = "${pkgs.synapse-cleanup}/bin/synapse-cleanup";
|
||||
};
|
||||
};
|
||||
timers.synapse-cleanup = {
|
||||
timerConfig = {
|
||||
OnCalendar = "weekly";
|
||||
Persistent = true;
|
||||
Unit = "synapse-cleanup.service";
|
||||
};
|
||||
wantedBy =
|
||||
[ "timers.target" ];
|
||||
};
|
||||
timers.synapse-cleanup = {
|
||||
timerConfig = {
|
||||
OnCalendar = "weekly";
|
||||
Persistent = true;
|
||||
Unit = "synapse-cleanup.service";
|
||||
};
|
||||
wantedBy = ["timers.target"];
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{config, ...}: {
|
||||
services.mx-puppet-discord = {
|
||||
enable = config.services.matrix-synapse.enable;
|
||||
inherit (config.services.matrix-synapse) enable;
|
||||
settings = {
|
||||
bridge = {
|
||||
bindAddress = "localhost";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
sopsFile = ./signal.yaml;
|
||||
};
|
||||
services.mautrix-signal = {
|
||||
enable = config.services.matrix-synapse.enable;
|
||||
inherit (config.services.matrix-synapse) enable;
|
||||
environmentFile = config.sops.secrets.mautrix-signal-environment.path;
|
||||
settings = {
|
||||
homeserver = {
|
||||
|
|
@ -13,24 +13,24 @@
|
|||
};
|
||||
appservice = {
|
||||
port = 9048;
|
||||
ephemeral_events = false;
|
||||
ephemeral_events = false;
|
||||
};
|
||||
signal = {
|
||||
};
|
||||
bridge = {
|
||||
history_sync = {
|
||||
request_full_sync = true;
|
||||
request_full_sync = true;
|
||||
};
|
||||
private_chat_portal_meta = true;
|
||||
mute_bridging = true;
|
||||
encryption = {
|
||||
allow = true;
|
||||
default = true;
|
||||
require = true;
|
||||
};
|
||||
provisioning = {
|
||||
shared_secret = "disable";
|
||||
};
|
||||
private_chat_portal_meta = true;
|
||||
mute_bridging = true;
|
||||
encryption = {
|
||||
allow = true;
|
||||
default = true;
|
||||
require = true;
|
||||
};
|
||||
provisioning = {
|
||||
shared_secret = "disable";
|
||||
};
|
||||
permissions = {
|
||||
"kittywit.ch" = "full";
|
||||
"@kat:kittywit.ch" = "admin";
|
||||
|
|
@ -39,4 +39,4 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
sopsFile = ./slack.yaml;
|
||||
};
|
||||
services.mautrix-slack = {
|
||||
enable = config.services.matrix-synapse.enable;
|
||||
inherit (config.services.matrix-synapse) enable;
|
||||
environmentFile = config.sops.secrets.mautrix-slack-environment.path;
|
||||
settings = {
|
||||
homeserver = {
|
||||
|
|
@ -12,24 +12,24 @@
|
|||
software = "standard";
|
||||
};
|
||||
appservice = {
|
||||
ephemeral_events = false;
|
||||
ephemeral_events = false;
|
||||
};
|
||||
slack = {
|
||||
};
|
||||
bridge = {
|
||||
history_sync = {
|
||||
request_full_sync = true;
|
||||
request_full_sync = true;
|
||||
};
|
||||
private_chat_portal_meta = true;
|
||||
mute_bridging = true;
|
||||
encryption = {
|
||||
allow = true;
|
||||
default = true;
|
||||
require = true;
|
||||
};
|
||||
provisioning = {
|
||||
shared_secret = "disable";
|
||||
};
|
||||
private_chat_portal_meta = true;
|
||||
mute_bridging = true;
|
||||
encryption = {
|
||||
allow = true;
|
||||
default = true;
|
||||
require = true;
|
||||
};
|
||||
provisioning = {
|
||||
shared_secret = "disable";
|
||||
};
|
||||
permissions = {
|
||||
"kittywit.ch" = "full";
|
||||
"@kat:kittywit.ch" = "admin";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
sopsFile = ./telegram.yaml;
|
||||
};
|
||||
services.mautrix-telegram = {
|
||||
enable = config.services.matrix-synapse.enable;
|
||||
inherit (config.services.matrix-synapse) enable;
|
||||
environmentFile = config.sops.secrets.mautrix-telegram-environment.path;
|
||||
settings = {
|
||||
homeserver = {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
sopsFile = ./whatsapp.yaml;
|
||||
};
|
||||
services.mautrix-whatsapp = {
|
||||
enable = config.services.matrix-synapse.enable;
|
||||
inherit (config.services.matrix-synapse) enable;
|
||||
environmentFile = config.sops.secrets.mautrix-whatsapp-environment.path;
|
||||
settings = {
|
||||
homeserver = {
|
||||
|
|
@ -17,11 +17,11 @@
|
|||
whatsapp = {
|
||||
};
|
||||
bridge = {
|
||||
encryption = {
|
||||
allow = true;
|
||||
default = true;
|
||||
require = true;
|
||||
};
|
||||
encryption = {
|
||||
allow = true;
|
||||
default = true;
|
||||
require = true;
|
||||
};
|
||||
permissions = {
|
||||
"kittywit.ch" = "full";
|
||||
"@whatsapp:kittywit.ch" = "admin";
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
{ config, ... }: {
|
||||
{config, ...}: {
|
||||
sops.secrets.monica_appkey = {
|
||||
sopsFile = ./secrets.yaml;
|
||||
owner = config.services.monica.user;
|
||||
group = config.services.monica.group;
|
||||
inherit (config.services.monica) group;
|
||||
};
|
||||
services.monica = {
|
||||
enable = true;
|
||||
|
|
|
|||
6
nixos/servers/rustdesk.nix
Normal file
6
nixos/servers/rustdesk.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
services.rustdesk-server = {
|
||||
enable = true;
|
||||
relayIP = "100.89.32.57";
|
||||
};
|
||||
}
|
||||
|
|
@ -5,4 +5,4 @@ _: {
|
|||
forceSSL = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,20 +1,20 @@
|
|||
{ pkgs, ... }: {
|
||||
services.tt-rss = {
|
||||
enable = true;
|
||||
virtualHost = "rss.kittywit.ch";
|
||||
selfUrlPath = "https://rss.kittywit.ch";
|
||||
database = {
|
||||
type = "pgsql";
|
||||
host = null;
|
||||
name = "tt_rss";
|
||||
createLocally = false;
|
||||
};
|
||||
plugins = [
|
||||
"auth_internal"
|
||||
"auth_ldap"
|
||||
"note"
|
||||
"updater"
|
||||
"api_feedreader"
|
||||
];
|
||||
_: {
|
||||
services.tt-rss = {
|
||||
enable = true;
|
||||
virtualHost = "rss.kittywit.ch";
|
||||
selfUrlPath = "https://rss.kittywit.ch";
|
||||
database = {
|
||||
type = "pgsql";
|
||||
host = null;
|
||||
name = "tt_rss";
|
||||
createLocally = false;
|
||||
};
|
||||
}
|
||||
plugins = [
|
||||
"auth_internal"
|
||||
"auth_ldap"
|
||||
"note"
|
||||
"updater"
|
||||
"api_feedreader"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
{ config, ... }: {
|
||||
home-manager.users.kat.programs.weechat.config.buflist = {
|
||||
format = with config.base16.defaultScheme.map.ansiStr; {
|
||||
indent = " "; # default " "
|
||||
buffer_current = "\${color:,${base02}}\${format_buffer}";
|
||||
hotlist = " \${color:${base0D}}(\${hotlist}\${color:${base0D}})";
|
||||
hotlist_highlight = "\${color:${base0E}}";
|
||||
hotlist_low = "\${color:${base03}}";
|
||||
hotlist_message = "\${color:${base08}}";
|
||||
hotlist_none = "\${color:${base05}}";
|
||||
hotlist_private = "\${color:${base09}}";
|
||||
hotlist_separator = "\${color:${base04}},";
|
||||
number = "\${color:${base09}}\${number}\${if:\${number_displayed}?.: }";
|
||||
};
|
||||
look.use_items = 4;
|
||||
{config, ...}: {
|
||||
home-manager.users.kat.programs.weechat.config.buflist = {
|
||||
format = with config.base16.defaultScheme.map.ansiStr; {
|
||||
indent = " "; # default " "
|
||||
buffer_current = "\${color:,${base02}}\${format_buffer}";
|
||||
hotlist = " \${color:${base0D}}(\${hotlist}\${color:${base0D}})";
|
||||
hotlist_highlight = "\${color:${base0E}}";
|
||||
hotlist_low = "\${color:${base03}}";
|
||||
hotlist_message = "\${color:${base08}}";
|
||||
hotlist_none = "\${color:${base05}}";
|
||||
hotlist_private = "\${color:${base09}}";
|
||||
hotlist_separator = "\${color:${base04}},";
|
||||
number = "\${color:${base09}}\${number}\${if:\${number_displayed}?.: }";
|
||||
};
|
||||
look.use_items = 4;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,46 +1,46 @@
|
|||
{ config, pkgs, lib, ... }: let
|
||||
inherit (lib.modules) mkMerge mkBefore mkAfter;
|
||||
{lib, ...}: let
|
||||
inherit (lib.modules) mkMerge mkBefore mkAfter;
|
||||
in {
|
||||
home-manager.users.kat = { config, ... }: {
|
||||
sops.secrets = let
|
||||
common = {
|
||||
sopsFile = ./secrets.yaml;
|
||||
};
|
||||
in {
|
||||
weechat-secret = common;
|
||||
liberachat-cert = common;
|
||||
espernet-cert = common;
|
||||
softnet-cert = common;
|
||||
};
|
||||
|
||||
programs.weechat = {
|
||||
init = mkMerge [
|
||||
(mkBefore ''
|
||||
/matrix server add kittywitch yukari.gensokyo.zone
|
||||
/matrix server add kittywitch-discord yukari.gensokyo.zone
|
||||
/matrix server add kittywitch-telegram yukari.gensokyo.zone
|
||||
/matrix server add kittywitch-whatsapp yukari.gensokyo.zone
|
||||
/matrix server add kittywitch-signal yukari.gensokyo.zone
|
||||
/matrix server add kittywitch-slack yukari.gensokyo.zone
|
||||
/exec -sh -norc -oc cat ${config.sops.secrets.weechat-secret.path}
|
||||
/set irc.server.liberachat.tls_cert ${config.sops.secrets.liberachat-cert.path}
|
||||
/set irc.server.espernet.tls_cert ${config.sops.secrets.espernet-cert.path}
|
||||
/set irc.server.softnet.tls_cert ${config.sops.secrets.softnet-cert.path}
|
||||
/key bind meta-g /go
|
||||
/key bind meta-v /input jump_last_buffer_displayed
|
||||
/key bind meta-c /buffer close
|
||||
/key bind meta-n /bar toggle nicklist
|
||||
/key bind meta-b /bar toggle buflist
|
||||
/relay add weechat 9000
|
||||
'')
|
||||
(mkAfter ''
|
||||
/matrix connect kittywitch
|
||||
/matrix connect kittywitch-discord
|
||||
/matrix connect kittywitch-telegram
|
||||
/matrix connect kittywitch-whatsapp
|
||||
/matrix connect kittywitch-signal
|
||||
'')
|
||||
];
|
||||
};
|
||||
home-manager.users.kat = {config, ...}: {
|
||||
sops.secrets = let
|
||||
common = {
|
||||
sopsFile = ./secrets.yaml;
|
||||
};
|
||||
in {
|
||||
weechat-secret = common;
|
||||
liberachat-cert = common;
|
||||
espernet-cert = common;
|
||||
softnet-cert = common;
|
||||
};
|
||||
}
|
||||
|
||||
programs.weechat = {
|
||||
init = mkMerge [
|
||||
(mkBefore ''
|
||||
/matrix server add kittywitch yukari.gensokyo.zone
|
||||
/matrix server add kittywitch-discord yukari.gensokyo.zone
|
||||
/matrix server add kittywitch-telegram yukari.gensokyo.zone
|
||||
/matrix server add kittywitch-whatsapp yukari.gensokyo.zone
|
||||
/matrix server add kittywitch-signal yukari.gensokyo.zone
|
||||
/matrix server add kittywitch-slack yukari.gensokyo.zone
|
||||
/exec -sh -norc -oc cat ${config.sops.secrets.weechat-secret.path}
|
||||
/set irc.server.liberachat.tls_cert ${config.sops.secrets.liberachat-cert.path}
|
||||
/set irc.server.espernet.tls_cert ${config.sops.secrets.espernet-cert.path}
|
||||
/set irc.server.softnet.tls_cert ${config.sops.secrets.softnet-cert.path}
|
||||
/key bind meta-g /go
|
||||
/key bind meta-v /input jump_last_buffer_displayed
|
||||
/key bind meta-c /buffer close
|
||||
/key bind meta-n /bar toggle nicklist
|
||||
/key bind meta-b /bar toggle buflist
|
||||
/relay add weechat 9000
|
||||
'')
|
||||
(mkAfter ''
|
||||
/matrix connect kittywitch
|
||||
/matrix connect kittywitch-discord
|
||||
/matrix connect kittywitch-telegram
|
||||
/matrix connect kittywitch-whatsapp
|
||||
/matrix connect kittywitch-signal
|
||||
'')
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
_: {
|
||||
home-manager.users.kat.programs.weechat.config.irc = {
|
||||
look = {
|
||||
server_buffer = "independent";
|
||||
color_nicks_in_nicklist = true;
|
||||
};
|
||||
home-manager.users.kat.programs.weechat.config.irc = {
|
||||
look = {
|
||||
server_buffer = "independent";
|
||||
color_nicks_in_nicklist = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,24 +1,24 @@
|
|||
{ pkgs, ... }: {
|
||||
home-manager.users.kat.programs.weechat = {
|
||||
scripts = with pkgs.weechatScripts; [
|
||||
weechat-matrix
|
||||
];
|
||||
plugins = {
|
||||
python = {
|
||||
packages = [ "weechat-matrix" ];
|
||||
};
|
||||
};
|
||||
config.matrix = {
|
||||
network = {
|
||||
max_backlog_sync_events = 30;
|
||||
lazy_load_room_users = true;
|
||||
autoreconnect_delay_max = 5;
|
||||
lag_min-show = 1000;
|
||||
};
|
||||
look = {
|
||||
server_buffer = "independent";
|
||||
redactions = "notice";
|
||||
};
|
||||
};
|
||||
{pkgs, ...}: {
|
||||
home-manager.users.kat.programs.weechat = {
|
||||
scripts = with pkgs.weechatScripts; [
|
||||
weechat-matrix
|
||||
];
|
||||
plugins = {
|
||||
python = {
|
||||
packages = ["weechat-matrix"];
|
||||
};
|
||||
};
|
||||
config.matrix = {
|
||||
network = {
|
||||
max_backlog_sync_events = 30;
|
||||
lazy_load_room_users = true;
|
||||
autoreconnect_delay_max = 5;
|
||||
lag_min-show = 1000;
|
||||
};
|
||||
look = {
|
||||
server_buffer = "independent";
|
||||
redactions = "notice";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
{ pkgs, ... }: {
|
||||
{pkgs, ...}: {
|
||||
services.nginx.virtualHosts."irc.kittywit.ch" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations = {
|
||||
"/" = { root = pkgs.glowing-bear; };
|
||||
"/" = {root = pkgs.glowing-bear;};
|
||||
"^~ /weechat" = {
|
||||
proxyPass = "http://127.0.0.1:9000";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,25 +1,25 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
home-manager.users.kat.programs.weechat = {
|
||||
plugins = {
|
||||
perl = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
scripts = with pkgs.weechatScripts; [
|
||||
highmon
|
||||
parse_relayed_msg
|
||||
];
|
||||
config.plugins.var.perl = {
|
||||
highmon = {
|
||||
short_names = "on";
|
||||
output = "buffer";
|
||||
merge_private = "on";
|
||||
alignment = "nchannel,nick";
|
||||
};
|
||||
parse_relayed_msg = {
|
||||
servername = "espernet";
|
||||
supported_bot_names = "cord";
|
||||
};
|
||||
};
|
||||
{pkgs, ...}: {
|
||||
home-manager.users.kat.programs.weechat = {
|
||||
plugins = {
|
||||
perl = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
scripts = with pkgs.weechatScripts; [
|
||||
highmon
|
||||
parse_relayed_msg
|
||||
];
|
||||
config.plugins.var.perl = {
|
||||
highmon = {
|
||||
short_names = "on";
|
||||
output = "buffer";
|
||||
merge_private = "on";
|
||||
alignment = "nchannel,nick";
|
||||
};
|
||||
parse_relayed_msg = {
|
||||
servername = "espernet";
|
||||
supported_bot_names = "cord";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,70 +1,77 @@
|
|||
{ config, pkgs, std, inputs, lib, ... }: let
|
||||
inherit (builtins) toJSON;
|
||||
inherit (std) list set;
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
std,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (builtins) toJSON;
|
||||
inherit (std) list set;
|
||||
in {
|
||||
home-manager.users.kat.programs.weechat = {
|
||||
plugins = {
|
||||
python = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
scripts = with pkgs.weechatScripts; [
|
||||
colorize_nicks
|
||||
title
|
||||
weechat-go
|
||||
weechat-notify-send
|
||||
vimode-develop
|
||||
auto_away
|
||||
weechat-autosort
|
||||
urlgrab
|
||||
unread_buffer
|
||||
];
|
||||
config.plugins.var = with set.map (_: v: "colour${builtins.toString (list.unsafeHead v)}") inputs.base16.lib.base16.shell.mapping256; {
|
||||
python = {
|
||||
vimode = {
|
||||
copy_clipboard_cmd = "wl-copy";
|
||||
paste_clipboard_cmd = "wl-paste --no-newline";
|
||||
imap_esc_timeout = "100";
|
||||
search_vim = true;
|
||||
user_mappings = toJSON {
|
||||
"," = "/buffer #{1}<CR>";
|
||||
"``" = "/input jump_last_buffer_displayed<CR>";
|
||||
"`n" = "/input jump_smart<CR>";
|
||||
"k" = "/input history_previous<CR>";
|
||||
"j" = "/input history_next<CR>";
|
||||
"p" = "a/input clipboard_paste<ICMD><ESC>";
|
||||
"P" = "/input clipboard_paste<CR>";
|
||||
#"u" = "/input undo<CR>";
|
||||
#"\\x01R" = "/input redo<CR>";
|
||||
"\\x01K" = "/buffer move -1<CR>";
|
||||
"\\x01J" = "/buffer move +1<CR>";
|
||||
};
|
||||
user_mappings_noremap = toJSON {
|
||||
"\\x01P" = "p";
|
||||
"/" = "i/";
|
||||
};
|
||||
user_search_mapping = "?";
|
||||
mode_indicator_cmd_color_bg = base01;
|
||||
mode_indicator_cmd_color = base04;
|
||||
mode_indicator_insert_color_bg = base01;
|
||||
mode_indicator_insert_color = base04;
|
||||
mode_indicator_normal_color_bg = base01;
|
||||
mode_indicator_normal_color = base04;
|
||||
mode_indicator_replace_color_bg = base01;
|
||||
mode_indicator_replace_color = base0E;
|
||||
mode_indicator_search_color_bg = base0E;
|
||||
mode_indicator_search_color = base04;
|
||||
no_warn = true;
|
||||
};
|
||||
title = {
|
||||
title_prefix = "weechat - ";
|
||||
show_hotlist = true;
|
||||
current_buffer_suffix = " [";
|
||||
title_suffix = " ]";
|
||||
};
|
||||
notify_send.icon = "";
|
||||
go.short_name = true;
|
||||
};
|
||||
};
|
||||
home-manager.users.kat.programs.weechat = {
|
||||
plugins = {
|
||||
python = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
scripts = with pkgs.weechatScripts; [
|
||||
colorize_nicks
|
||||
title
|
||||
weechat-go
|
||||
weechat-notify-send
|
||||
vimode-develop
|
||||
auto_away
|
||||
weechat-autosort
|
||||
urlgrab
|
||||
unread_buffer
|
||||
];
|
||||
config.plugins.var = with set.map (_: v: "colour${builtins.toString (list.unsafeHead v)}") inputs.base16.lib.base16.shell.mapping256; {
|
||||
python = {
|
||||
vimode = {
|
||||
copy_clipboard_cmd = "wl-copy";
|
||||
paste_clipboard_cmd = "wl-paste --no-newline";
|
||||
imap_esc_timeout = "100";
|
||||
search_vim = true;
|
||||
user_mappings = toJSON {
|
||||
"," = "/buffer #{1}<CR>";
|
||||
"``" = "/input jump_last_buffer_displayed<CR>";
|
||||
"`n" = "/input jump_smart<CR>";
|
||||
"k" = "/input history_previous<CR>";
|
||||
"j" = "/input history_next<CR>";
|
||||
"p" = "a/input clipboard_paste<ICMD><ESC>";
|
||||
"P" = "/input clipboard_paste<CR>";
|
||||
#"u" = "/input undo<CR>";
|
||||
#"\\x01R" = "/input redo<CR>";
|
||||
"\\x01K" = "/buffer move -1<CR>";
|
||||
"\\x01J" = "/buffer move +1<CR>";
|
||||
};
|
||||
user_mappings_noremap = toJSON {
|
||||
"\\x01P" = "p";
|
||||
"/" = "i/";
|
||||
};
|
||||
user_search_mapping = "?";
|
||||
mode_indicator_cmd_color_bg = base01;
|
||||
mode_indicator_cmd_color = base04;
|
||||
mode_indicator_insert_color_bg = base01;
|
||||
mode_indicator_insert_color = base04;
|
||||
mode_indicator_normal_color_bg = base01;
|
||||
mode_indicator_normal_color = base04;
|
||||
mode_indicator_replace_color_bg = base01;
|
||||
mode_indicator_replace_color = base0E;
|
||||
mode_indicator_search_color_bg = base0E;
|
||||
mode_indicator_search_color = base04;
|
||||
no_warn = true;
|
||||
};
|
||||
title = {
|
||||
title_prefix = "weechat - ";
|
||||
show_hotlist = true;
|
||||
current_buffer_suffix = " [";
|
||||
title_suffix = " ]";
|
||||
};
|
||||
notify_send.icon = "";
|
||||
go.short_name = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
{ pkgs, ... }: {
|
||||
home-manager.users.kat.programs.weechat.config.matrix.urlgrab.default.copycmd = "${pkgs.xclip}/bin/xclip -sel clipboard";
|
||||
{pkgs, ...}: {
|
||||
home-manager.users.kat.programs.weechat.config.matrix.urlgrab.default.copycmd = "${pkgs.xclip}/bin/xclip -sel clipboard";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,56 +1,54 @@
|
|||
{ config, std, inputs, lib, ... }: let
|
||||
inherit (std) list set;
|
||||
in {
|
||||
home-manager.users.kat = {
|
||||
services.weechat.enable = true;
|
||||
programs.weechat = {
|
||||
enable = true;
|
||||
config.weechat = with config.base16.defaultScheme.map.ansiStr; {
|
||||
look = {
|
||||
mouse = true;
|
||||
separator_horizontal = "";
|
||||
read_marker_string = "─";
|
||||
prefix_same_nick = "↳";
|
||||
highlight_disable_regex = "signal|discord|telegram|whatsapp";
|
||||
highlight = "kat,kittywitch";
|
||||
};
|
||||
# color overrides
|
||||
color = {
|
||||
chat_nick_self = base0E;
|
||||
separator = base06;
|
||||
chat_read_marker = base0B;
|
||||
chat_read_marker_bg = base03;
|
||||
};
|
||||
# bars config
|
||||
bar = {
|
||||
buflist = {
|
||||
size_max = 24;
|
||||
color_delim = base0E;
|
||||
};
|
||||
input = {
|
||||
items = "[input_prompt]+(away),[input_search],[input_paste],input_text,[vi_buffer]";
|
||||
color_delim = base0E;
|
||||
conditions = "\${window.buffer.full_name} != perl.highmon";
|
||||
};
|
||||
nicklist = {
|
||||
size_max = 18;
|
||||
color_delim = base0E;
|
||||
};
|
||||
status = {
|
||||
color_bg = base02;
|
||||
color_fg = base06;
|
||||
color_delim = base0E;
|
||||
items = "[time],mode_indicator,[buffer_last_number],[buffer_plugin],buffer_number+:+buffer_name+(buffer_modes)+{buffer_nicklist_count}+matrix_typing_notice+buffer_zoom+buffer_filter,scroll,[lag],[hotlist],completion,cmd_completion";
|
||||
conditions = "\${window.buffer.full_name} != perl.highmon";
|
||||
};
|
||||
title = {
|
||||
color_bg = base02;
|
||||
color_fg = base06;
|
||||
color_delim = base0E;
|
||||
conditions = "\${window.buffer.full_name} != perl.highmon";
|
||||
};
|
||||
};
|
||||
};
|
||||
{config, ...}: {
|
||||
home-manager.users.kat = {
|
||||
services.weechat.enable = true;
|
||||
programs.weechat = {
|
||||
enable = true;
|
||||
config.weechat = with config.base16.defaultScheme.map.ansiStr; {
|
||||
look = {
|
||||
mouse = true;
|
||||
separator_horizontal = "";
|
||||
read_marker_string = "─";
|
||||
prefix_same_nick = "↳";
|
||||
highlight_disable_regex = "signal|discord|telegram|whatsapp";
|
||||
highlight = "kat,kittywitch";
|
||||
};
|
||||
};
|
||||
}
|
||||
# color overrides
|
||||
color = {
|
||||
chat_nick_self = base0E;
|
||||
separator = base06;
|
||||
chat_read_marker = base0B;
|
||||
chat_read_marker_bg = base03;
|
||||
};
|
||||
# bars config
|
||||
bar = {
|
||||
buflist = {
|
||||
size_max = 24;
|
||||
color_delim = base0E;
|
||||
};
|
||||
input = {
|
||||
items = "[input_prompt]+(away),[input_search],[input_paste],input_text,[vi_buffer]";
|
||||
color_delim = base0E;
|
||||
conditions = "\${window.buffer.full_name} != perl.highmon";
|
||||
};
|
||||
nicklist = {
|
||||
size_max = 18;
|
||||
color_delim = base0E;
|
||||
};
|
||||
status = {
|
||||
color_bg = base02;
|
||||
color_fg = base06;
|
||||
color_delim = base0E;
|
||||
items = "[time],mode_indicator,[buffer_last_number],[buffer_plugin],buffer_number+:+buffer_name+(buffer_modes)+{buffer_nicklist_count}+matrix_typing_notice+buffer_zoom+buffer_filter,scroll,[lag],[hotlist],completion,cmd_completion";
|
||||
conditions = "\${window.buffer.full_name} != perl.highmon";
|
||||
};
|
||||
title = {
|
||||
color_bg = base02;
|
||||
color_fg = base06;
|
||||
color_delim = base0E;
|
||||
conditions = "\${window.buffer.full_name} != perl.highmon";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue