From 948dfbd044fe988213ef3722c3caa482bc7fe281 Mon Sep 17 00:00:00 2001 From: Mark Dickie Date: Tue, 25 Nov 2025 09:54:02 +0100 Subject: [PATCH] Added jocalsend --- bin/quickmenu.sh | 8 ++++++++ modules/nixos/system.nix | 14 ++++++++++---- modules/packages.nix | 10 ++++++++-- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/bin/quickmenu.sh b/bin/quickmenu.sh index c73b430..b6b49ff 100755 --- a/bin/quickmenu.sh +++ b/bin/quickmenu.sh @@ -23,6 +23,11 @@ collect() { notify-send nix-collect-grabage "Completed garbage collection" } +send_file() { + FILE=$(find ~ -type f | wofi -d) + kitty --class=com.markd.nmtui jocalsend "$FILE" +} + case "$SELECTION" in "󰈦 Open PDF") pdf @@ -36,4 +41,7 @@ case "$SELECTION" in "󰃨 Collect Garbage") collect ;; + "󰈪 Send File") + send_file + ;; esac diff --git a/modules/nixos/system.nix b/modules/nixos/system.nix index 1293cfa..31e7a5b 100644 --- a/modules/nixos/system.nix +++ b/modules/nixos/system.nix @@ -1,13 +1,17 @@ - { config, pkgs, lib, ... -}: let +}: +let cfg = config.omarchy; - packages = import ../packages.nix {inherit pkgs lib; exclude_packages = cfg.exclude_packages;}; -in { + packages = import ../packages.nix { + inherit pkgs lib; + exclude_packages = cfg.exclude_packages; + }; +in +{ environment.systemPackages = packages.systemPackages; networking.wireless.iwd.enable = true; networking.networkmanager.enable = lib.mkDefault false; @@ -21,4 +25,6 @@ in { }; networking.wireguard.enable = true; services.upower.enable = true; + networking.firewall.allowedTCPPorts = [ 53317 ]; + networking.firewall.allowedUDPPorts = [ 53317 ]; } diff --git a/modules/packages.nix b/modules/packages.nix index 23f8681..7aedfa7 100644 --- a/modules/packages.nix +++ b/modules/packages.nix @@ -1,4 +1,8 @@ -{pkgs, lib, exclude_packages ? []}: +{ + pkgs, + lib, + exclude_packages ? [ ], +}: let # Essential Hyprland packages - cannot be excluded hyprlandPackages = with pkgs; [ @@ -17,6 +21,7 @@ let ffmpeg impala bluetui + jocalsend rose-pine-hyprcursor ]; @@ -60,7 +65,8 @@ let # Only allow excluding discretionary packages to prevent breaking the system filteredDiscretionaryPackages = lib.lists.subtractLists exclude_packages discretionaryPackages; allSystemPackages = hyprlandPackages ++ systemPackages ++ filteredDiscretionaryPackages; -in { +in +{ # Regular packages systemPackages = allSystemPackages; -- 2.51.2