Compare commits
No commits in common. "ede2a1ef549e3385ad858ba2081dfb28c439a753" and "bd12213e4aed8754b47da48cce7df7c8e0ec9021" have entirely different histories.
ede2a1ef54
...
bd12213e4a
4 changed files with 26 additions and 35 deletions
|
@ -278,8 +278,8 @@ myKeys conf =
|
||||||
-- launch a 'flameshot' to screenshot
|
-- launch a 'flameshot' to screenshot
|
||||||
("M-S-s", safeSpawn "flameshot" ["gui"]),
|
("M-S-s", safeSpawn "flameshot" ["gui"]),
|
||||||
-- launch browsers
|
-- launch browsers
|
||||||
("M-S-b", spawn "librewolf"),
|
("M-S-b", spawn "cont-librewolf"),
|
||||||
("M-S-t", spawn "tor-browser"),
|
("M-S-t", spawn "cont-tor-browser"),
|
||||||
-- launch 'dmenu_run' to choose applications
|
-- launch 'dmenu_run' to choose applications
|
||||||
("M-r", spawn "dmenu_run"),
|
("M-r", spawn "dmenu_run"),
|
||||||
-- launch 'rofi-pass' to use password manager
|
-- launch 'rofi-pass' to use password manager
|
||||||
|
|
|
@ -128,6 +128,10 @@ in
|
||||||
"\\" = fill "filter";
|
"\\" = fill "filter";
|
||||||
"n" = exec "next-result";
|
"n" = exec "next-result";
|
||||||
"N" = exec "prev-result";
|
"N" = exec "prev-result";
|
||||||
|
#"D" = exec "modify-labels +deleted -inbox";
|
||||||
|
#"A" = exec "modify-labels -inbox";
|
||||||
|
#"ms" = exec "modify-labels +spam -inbox";
|
||||||
|
#"mS" = exec "modify-labels -spam +inbox";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -153,14 +157,15 @@ in
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
compose = {
|
compose = lib.mkMerge [
|
||||||
"$ex" = "<C-x>";
|
globalBinds
|
||||||
"<C-k>" = exec "prev-field";
|
{
|
||||||
"<C-j>" = exec "next-field";
|
"$ex" = "<C-x>";
|
||||||
"<tab>" = exec "next-field";
|
"<C-k>" = exec "prev-field";
|
||||||
"<C-l>" = exec "next-tab";
|
"<C-j>" = exec "next-field";
|
||||||
"<C-h>" = exec "prev-tab";
|
"<tab>" = exec "next-field";
|
||||||
};
|
}
|
||||||
|
];
|
||||||
|
|
||||||
"compose::editor" = {
|
"compose::editor" = {
|
||||||
"$noinherit" = "true";
|
"$noinherit" = "true";
|
||||||
|
|
|
@ -6,29 +6,22 @@ let
|
||||||
hostAddress = "192.168.7.10";
|
hostAddress = "192.168.7.10";
|
||||||
localAddress = "192.168.7.11";
|
localAddress = "192.168.7.11";
|
||||||
|
|
||||||
|
hostRunBrowser = pkgs.writeScript "run-browser" ''
|
||||||
|
host=browsers.containers
|
||||||
|
if [ -z "$(ssh-keygen -F $host)" ]; then
|
||||||
|
ssh-keyscan -H $host >> ~/.ssh/known_hosts
|
||||||
|
fi
|
||||||
|
ssh -o PubkeyAuthentication=no kira@$host $@
|
||||||
|
'';
|
||||||
|
|
||||||
contPackages =
|
contPackages =
|
||||||
lib.optional cfg.tor-browser.enable cfg.tor-browser.package
|
lib.optional cfg.tor-browser.enable cfg.tor-browser.package
|
||||||
++ lib.optional cfg.librewolf.enable cfg.librewolf.package
|
++ lib.optional cfg.librewolf.enable cfg.librewolf.package
|
||||||
++ lib.optional cfg.mullvad-browser.enable cfg.mullvad-browser.package;
|
++ lib.optional cfg.mullvad-browser.enable cfg.mullvad-browser.package;
|
||||||
|
|
||||||
hostPackages = lib.flip map contPackages (p:
|
hostPackages = lib.flip map contPackages (p:
|
||||||
let
|
pkgs.writeScriptBin "cont-${p.meta.mainProgram}" ''
|
||||||
hostRunBrowser = pkgs.writeScript "cont-run-browser" ''
|
${hostRunBrowser} ${p.meta.mainProgram}
|
||||||
host=browsers.containers
|
|
||||||
if [ -z "$(ssh-keygen -F $host)" ]; then
|
|
||||||
ssh-keyscan -H $host >> ~/.ssh/known_hosts
|
|
||||||
fi
|
|
||||||
ssh -o PubkeyAuthentication=no kira@$host $@
|
|
||||||
'';
|
|
||||||
|
|
||||||
hostBrowserScript = pkgs.writeScriptBin "${p.meta.mainProgram}" ''
|
|
||||||
${hostRunBrowser} ${p.meta.mainProgram} $@
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
pkgs.runCommand "${p.meta.mainProgram}" { } ''
|
|
||||||
mkdir $out
|
|
||||||
cp -r ${hostBrowserScript}/bin $out/bin
|
|
||||||
cp -r ${p}/share $out/share
|
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -58,10 +51,6 @@ in
|
||||||
networking = {
|
networking = {
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedTCPPorts = [ 4713 ];
|
allowedTCPPorts = [ 4713 ];
|
||||||
allowedTCPPortRanges = [
|
|
||||||
{ from = 3000; to = 3999; }
|
|
||||||
{ from = 32000; to = 33999; }
|
|
||||||
];
|
|
||||||
trustedInterfaces = [ "ve-*" ];
|
trustedInterfaces = [ "ve-*" ];
|
||||||
};
|
};
|
||||||
nat = {
|
nat = {
|
||||||
|
@ -102,10 +91,7 @@ in
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
||||||
# Inherit configs from host
|
# Inherit configs from host
|
||||||
networking.hosts = lib.mkMerge [
|
networking.hosts = config.networking.hosts;
|
||||||
config.networking.hosts
|
|
||||||
{ "${hostAddress}" = [ "host" ]; }
|
|
||||||
];
|
|
||||||
fonts = {
|
fonts = {
|
||||||
inherit (config.fonts) enableDefaultPackages packages;
|
inherit (config.fonts) enableDefaultPackages packages;
|
||||||
fontconfig = { inherit (config.fonts.fontconfig) defaultFonts; };
|
fontconfig = { inherit (config.fonts.fontconfig) defaultFonts; };
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue