From 9874c6af56a9c5a0a85b3d9abd6504e09207ddb7 Mon Sep 17 00:00:00 2001 From: Joshua Yuen Date: Sat, 20 Jun 2026 02:21:59 -0400 Subject: [PATCH] Add LocalSend --- modules/core/default.nix | 1 + modules/core/localsend.nix | 16 ++++++++++++++++ modules/options/default.nix | 1 + modules/options/localsend.nix | 13 +++++++++++++ profiles/desktop/default.nix | 2 ++ 5 files changed, 33 insertions(+) create mode 100644 modules/core/localsend.nix create mode 100644 modules/options/localsend.nix diff --git a/modules/core/default.nix b/modules/core/default.nix index e9df2b8..aed6fc1 100644 --- a/modules/core/default.nix +++ b/modules/core/default.nix @@ -8,6 +8,7 @@ ./fonts.nix ./gdm.nix ./hyprland.nix + ./localsend.nix ./network.nix ./packages.nix ./pipewire.nix diff --git a/modules/core/localsend.nix b/modules/core/localsend.nix new file mode 100644 index 0000000..cb3d89f --- /dev/null +++ b/modules/core/localsend.nix @@ -0,0 +1,16 @@ +{ + config, + lib, + ... +}: +with lib; +let + cfg = config.modules.localsend; +in +{ + config = mkIf cfg.enable { + programs.localsend = { + enable = true; + }; + }; +} \ No newline at end of file diff --git a/modules/options/default.nix b/modules/options/default.nix index 6bce156..0b05101 100644 --- a/modules/options/default.nix +++ b/modules/options/default.nix @@ -5,6 +5,7 @@ imports = [ ./displayManager.nix ./hyprland.nix + ./localsend.nix ./pipewire.nix ./plasma.nix ./shell.nix diff --git a/modules/options/localsend.nix b/modules/options/localsend.nix new file mode 100644 index 0000000..ef3cacb --- /dev/null +++ b/modules/options/localsend.nix @@ -0,0 +1,13 @@ +{ + lib, + ... +}: +with lib; +{ + options.modules.localsend = { + enable = mkEnableOption { + default = false; + description = "Enable LocalSend"; + }; + }; +} diff --git a/profiles/desktop/default.nix b/profiles/desktop/default.nix index 98d6003..d9ed72a 100644 --- a/profiles/desktop/default.nix +++ b/profiles/desktop/default.nix @@ -17,6 +17,8 @@ modules.plasma.enable = false; modules.displayManager.displayManager = "gdm"; + modules.localsend.enable = true; + modules.zsh.enable = true; modules.shell.defaultShell = "zsh";