From d179a45db854e7f120ea5105cc96329aa87e1fa7 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Tue, 22 Jul 2025 17:20:56 +0530 Subject: [PATCH] feat: don't use swayosd on macos --- home/linux/default.nix | 7 ++++--- home/services/swaync.nix | 4 ++-- home/services/swayosd.nix | 4 ++-- neovim/default.nix | 21 ++++++++++++--------- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/home/linux/default.nix b/home/linux/default.nix index 7db10f05..f11ea915 100644 --- a/home/linux/default.nix +++ b/home/linux/default.nix @@ -16,9 +16,10 @@ in { services.kdeconnect.enable = linux_gui; services.kdeconnect.indicator = linux_gui; - home.packages = with pkgs; [ - ncpamixer - ]; + home.packages = with pkgs; + lib.optionals linux_gui [ + ncpamixer + ]; # services.swayosd.enable = linux_gui; # services.swaync.enable = linux_gui; # services.nextcloud-client = { diff --git a/home/services/swaync.nix b/home/services/swaync.nix index 3f802e79..09b2c350 100644 --- a/home/services/swaync.nix +++ b/home/services/swaync.nix @@ -1,6 +1,6 @@ -{...}: { +{device, ...}: { services.swaync = { - enable = true; + enable = device.name == "ryu"; settings = { notification-inline-replies = true; cssPriority = "user"; diff --git a/home/services/swayosd.nix b/home/services/swayosd.nix index 27219ae1..64ba225a 100644 --- a/home/services/swayosd.nix +++ b/home/services/swayosd.nix @@ -1,3 +1,3 @@ -{...}: { - services.swayosd.enable = true; +{device, ...}: { + services.swayosd.enable = device.name == "ryu"; } diff --git a/neovim/default.nix b/neovim/default.nix index c12eed53..2877fc27 100644 --- a/neovim/default.nix +++ b/neovim/default.nix @@ -497,6 +497,9 @@ in { inlayHints = { typeHints.enable = false; }; + check = { + features = ["default"]; + }; files.exclude = [ ".cargo/" ".direnv/" @@ -509,15 +512,15 @@ in { }; }; }; - onAttach = - /* - lua - */ - '' - if client.server_capabilities.inlayHintProvider then - vim.lsp.inlay_hint.enable(true) - end - ''; + # onAttach = + # /* + # lua + # */ + # '' + # if client.server_capabilities.inlayHintProvider then + # vim.lsp.inlay_hint.enable(true) + # end + # ''; }; # blink-cmp = { # enable = false;