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 vulkan-validation-layers
wget wget
wirelesstools wirelesstools
wol
xdg-utils xdg-utils
zip zip
z-lua z-lua

View File

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

View File

@ -11,6 +11,14 @@
chromium_discord = pkgs.writeShellScriptBin "chromium_discord" '' chromium_discord = pkgs.writeShellScriptBin "chromium_discord" ''
${pkgs.chromium}/bin/chromium --socket=wayland org.chromium.Chromium --app=https://discordapp.com/channels/@me ${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 { in {
home.packages = with pkgs; home.packages = with pkgs;
[ [
@ -25,8 +33,6 @@ in {
caddy caddy
cargo cargo
chromium chromium
chromium_discord
chromium_teams
cmake cmake
compsize compsize
cura cura
@ -106,6 +112,11 @@ in {
zeal-qt6 zeal-qt6
zig zig
] ]
++ [
chromium_discord
chromium_teams
ssh_proxy
]
++ [ ++ [
inputs.swaysw.packages.${system}.swaysw inputs.swaysw.packages.${system}.swaysw
(pkgs.callPackage ../packages/viber/default.nix {}) (pkgs.callPackage ../packages/viber/default.nix {})