Compare commits

...

3 Commits

Author SHA1 Message Date
3cabb1a700
packages: add wol 2024-04-01 01:05:05 +02:00
6bdd7be056
home_packages: add ssh proxy script 2024-04-01 01:00:33 +02:00
9e9d70785b
home/qutebrowser: wrap in firejail 2024-04-01 00:59:16 +02:00
3 changed files with 21 additions and 4 deletions

View File

@ -74,6 +74,7 @@
vulkan-validation-layers
wget
wirelesstools
wol
xdg-utils
zip
z-lua

View File

@ -5,6 +5,11 @@
inputs,
...
}:
let
qutebrowser_firejail = pkgs.writeShellScriptBin "qutebrowser" ''
firejail -- ${pkgs.qutebrowser}/bin/qutebrowser "$@"
'';
in
with lib; {
imports = [./zsh.nix ./i3status-rust.nix ./sway.nix ./i3.nix ./home_packages.nix ./whatsapp-for-linux.nix];
@ -28,7 +33,7 @@ with lib; {
fonts.fontconfig.enable = true;
home.sessionVariables = rec {
BROWSER = "${pkgs.qutebrowser}/bin/qutebrowser";
BROWSER = "${qutebrowser_firejail}/bin/qutebrowser";
DEFAULT_BROWSER = "${BROWSER}";
EDITOR = "nvim";
_JAVA_AWT_WM_NONREPARENTING = "1";
@ -140,7 +145,7 @@ with lib; {
qutebrowser = {
enable = true;
package = pkgs.qutebrowser.override {enableVulkan = false;};
package = qutebrowser_firejail;
keyBindings = {
normal = {
"j" = "scroll-px 0 25";

View File

@ -11,6 +11,14 @@
chromium_discord = pkgs.writeShellScriptBin "chromium_discord" ''
${pkgs.chromium}/bin/chromium --socket=wayland org.chromium.Chromium --app=https://discordapp.com/channels/@me
'';
ssh_proxy = pkgs.writeShellScriptBin "ssh_proxy" ''
if ${pkgs.coreutils}/bin/test $# -ne 1; then
echo "Usage: $0 <user>@<ssh_host>"
exit
fi
PROXY_PORT="1337"
${pkgs.openssh}/bin/ssh -D "$PROXY_PORT" -q -N "$@"
'';
in {
home.packages = with pkgs;
[
@ -25,8 +33,6 @@ in {
caddy
cargo
chromium
chromium_discord
chromium_teams
cmake
compsize
cura
@ -106,6 +112,11 @@ in {
zeal-qt6
zig
]
++ [
chromium_discord
chromium_teams
ssh_proxy
]
++ [
inputs.swaysw.packages.${system}.swaysw
(pkgs.callPackage ../packages/viber/default.nix {})