From 2ac619added477abd6c499bf624f291e60acf0d1 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Thu, 1 Jan 2026 14:12:24 +0100 Subject: [PATCH] feat(skadi): add localsend. --- hosts/skadi/configuration.nix | 2 +- modules/linux/nixos/default.nix | 2 ++ modules/linux/nixos/localsend.nix | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 modules/linux/nixos/localsend.nix diff --git a/hosts/skadi/configuration.nix b/hosts/skadi/configuration.nix index b44d021..dbd0edb 100644 --- a/hosts/skadi/configuration.nix +++ b/hosts/skadi/configuration.nix @@ -26,7 +26,6 @@ services.scx = { enable = true; scheduler = "scx_lavd"; - # extraArgs = ["--perf" "1024"]; }; # Get nicer hostname @@ -308,6 +307,7 @@ # crony.ollama.enable = true; crony.sunshine.enable = true; crony.bluetooth.enable = true; + crony.localsend.enable = true; # Setup spice usb redirection virtualisation.spiceUSBRedirection.enable = true; diff --git a/modules/linux/nixos/default.nix b/modules/linux/nixos/default.nix index 390bb1d..a26dbd8 100644 --- a/modules/linux/nixos/default.nix +++ b/modules/linux/nixos/default.nix @@ -28,6 +28,7 @@ ./boot.nix ./kanata.nix ./keyd.nix + ./localsend.nix ]; crony.bluetooth.enable = lib.mkDefault true; @@ -58,4 +59,5 @@ crony.boot.enable = lib.mkDefault false; crony.kanata.enable = lib.mkDefault false; crony.keyd.enable = lib.mkDefault true; + crony.localsend.enable = lib.mkDefault false; } diff --git a/modules/linux/nixos/localsend.nix b/modules/linux/nixos/localsend.nix new file mode 100644 index 0000000..222c5e3 --- /dev/null +++ b/modules/linux/nixos/localsend.nix @@ -0,0 +1,16 @@ +{ + config, + lib, + ... +}: { + options = { + crony.localsend.enable = lib.mkEnableOption "Enable and setup localsend"; + }; + + config = lib.mkIf config.crony.localsend.enable { + programs.localsend = { + enable = true; + openFirewall = true; + }; + }; +}