Compare commits

..

2 commits

Author SHA1 Message Date
Dmitry Voronin 1662420bdc
Tmux: Move prefix to C-[. 2024-10-21 14:06:59 +03:00
Dmitry Voronin dccf7c5b6e
Firefox: Add MM link. 2024-10-21 14:04:36 +03:00
4 changed files with 56 additions and 111 deletions

View file

@ -1,57 +0,0 @@
{
container,
lib,
config,
...
}:
let
cfg = config.container.module.chat;
in
{
options = {
container.module.chat = {
enable = lib.mkEnableOption "chat container.";
address = lib.mkOption {
default = "10.1.0.20";
type = lib.types.str;
};
port = lib.mkOption {
default = 80;
type = lib.types.int;
};
domain = lib.mkOption {
default = "chat.${config.container.domain}";
type = lib.types.str;
};
storage = lib.mkOption {
default = "${config.container.storage}/chat";
type = lib.types.str;
};
};
};
# WIP: https://search.nixos.org/options?channel=24.05&from=0&size=50&sort=relevance&type=packages&query=mattermost
config = lib.mkIf cfg.enable {
systemd.tmpfiles.rules = container.mkContainerDir cfg [ "data" ];
containers.chat = container.mkContainer cfg {
bindMounts = {
# "/var/lib/changedetection-io" = {
# hostPath = "${cfg.storage}/data";
# isReadOnly = false;
# };
};
config =
{ ... }:
container.mkContainerConfig cfg {
# services.changedetection-io = {
# enable = true;
# baseURL = cfg.domain;
# behindProxy = true;
# listenAddress = cfg.address;
# };
};
};
};
}

View file

@ -2,6 +2,8 @@
{ {
text = '' text = ''
unbind-key C-b unbind-key C-b
set-option -g prefix C-[
bind-key C-[ send-prefix
bind -n M-r source-file ~/.config/tmux/tmux.conf bind -n M-r source-file ~/.config/tmux/tmux.conf
''; '';
} }

View file

@ -4,6 +4,7 @@ let
(mkBookmark "Dashboard" "https://home.voronind.com") (mkBookmark "Dashboard" "https://home.voronind.com")
(mkBookmark "Watch" "https://watch.voronind.com") (mkBookmark "Watch" "https://watch.voronind.com")
(mkBookmark "Telegram" "https://web.telegram.org/a") (mkBookmark "Telegram" "https://web.telegram.org/a")
(mkBookmark "WorkChat" "https://fsmm.fsight.ru/fmp")
(mkBookmark "Mail" "https://mail.voronind.com") (mkBookmark "Mail" "https://mail.voronind.com")
(mkBookmark "WorkMail" "https://mail.fsight.ru") (mkBookmark "WorkMail" "https://mail.fsight.ru")
(mkBookmark "Git" "https://git.voronind.com") (mkBookmark "Git" "https://git.voronind.com")

View file

@ -2,51 +2,6 @@
let let
iconTheme = "fa-solid"; iconTheme = "fa-solid";
mkGroup = name: icon: items: {
inherit name items;
icon = "${iconTheme} ${icon}";
};
mkLink = name: icon: url: {
inherit name url;
icon = "${iconTheme} ${icon}";
target = "_blank";
};
cfg = {
title = "Dashboard";
subtitle = "Home";
header = false;
footer = false;
connectivityCheck = false;
theme = "default";
colors =
let
colors =
let
cfg = config.style.color;
in
{
background = "#${cfg.bg.dark}";
card-background = "#${cfg.bg.regular}";
card-shadow = "#${cfg.bg.regular}";
highlight-hover = "#${cfg.accent}";
highlight-primary = "#${cfg.fg.regular}";
highlight-secondary = "#${cfg.bg.dark}";
link = "#${cfg.fg.regular}";
link-hover = "#${cfg.accent}";
text = "#${cfg.fg.regular}";
text-header = "#${cfg.fg.regular}";
text-subtitle = "#${cfg.fg.light}";
text-title = "#${cfg.fg.light}";
};
in
{
light = colors;
dark = colors;
};
links = [ (mkLink "Status" "fa-heartbeat" "https://${config.container.module.status.domain}") ]; links = [ (mkLink "Status" "fa-heartbeat" "https://${config.container.module.status.domain}") ];
services = [ services = [
@ -83,9 +38,6 @@ let
(mkLink "Toolbox" "fa-toolbox" "https://it-tools.tech") (mkLink "Toolbox" "fa-toolbox" "https://it-tools.tech")
(mkLink "Zigbee" "fa-satellite-dish" "https://zigbee.blakadder.com") (mkLink "Zigbee" "fa-satellite-dish" "https://zigbee.blakadder.com")
]) ])
(mkGroup "Work" "fa-briefcase" [
(mkLink "Vm Manager" "fa-server" "https://fs-vcsa.fs.fsight.world/ui")
])
(mkGroup "Pirate" "fa-skull-crossbones" [ (mkGroup "Pirate" "fa-skull-crossbones" [
(mkLink "1337x" "fa-skull-crossbones" "https://1337x.to") (mkLink "1337x" "fa-skull-crossbones" "https://1337x.to")
(mkLink "Cs.rin.ru" "fa-skull-crossbones" "https://cs.rin.ru/forum/index.php") (mkLink "Cs.rin.ru" "fa-skull-crossbones" "https://cs.rin.ru/forum/index.php")
@ -100,6 +52,53 @@ let
(mkLink "Tapochek.net" "fa-skull-crossbones" "https://tapochek.net/index.php") (mkLink "Tapochek.net" "fa-skull-crossbones" "https://tapochek.net/index.php")
]) ])
]; ];
mkGroup = name: icon: items: {
inherit name items;
icon = "${iconTheme} ${icon}";
};
mkLink = name: icon: url: {
inherit name url;
icon = "${iconTheme} ${icon}";
target = "_blank";
};
cfg = {
inherit services links;
title = "Dashboard";
subtitle = "Home";
header = false;
footer = false;
connectivityCheck = false;
theme = "default";
colors =
let
colors =
let
cfg = config.style.color;
in
{
background = "#${cfg.bg.dark}";
card-background = "#${cfg.bg.regular}";
card-shadow = "#${cfg.bg.regular}";
highlight-hover = "#${cfg.accent}";
highlight-primary = "#${cfg.fg.regular}";
highlight-secondary = "#${cfg.bg.dark}";
link = "#${cfg.fg.regular}";
link-hover = "#${cfg.accent}";
text = "#${cfg.fg.regular}";
text-header = "#${cfg.fg.regular}";
text-subtitle = "#${cfg.fg.light}";
text-title = "#${cfg.fg.light}";
};
in
{
light = colors;
dark = colors;
};
}; };
in in
{ {