From e30e6de8e09584367bedf96704a641a70575efca Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Thu, 14 Mar 2024 03:05:12 +0530 Subject: [PATCH] [feat] Fix kdeconnect --- linux/default.nix | 1 + nixos/configuration.nix | 10 ++++++++++ themes/catppuccin.nix | 16 ++++++++++++++-- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/linux/default.nix b/linux/default.nix index de2769dd..c7f7cd9c 100644 --- a/linux/default.nix +++ b/linux/default.nix @@ -9,6 +9,7 @@ ]; services.kdeconnect.enable = true; + services.kdeconnect.indicator = true; services.swayosd.enable = true; systemd.user.services.spotify-player = { diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 332021ce..fb89aa37 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -195,6 +195,16 @@ # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false; + networking.firewall = { + enable = true; + allowedTCPPortRanges = [ + { from = 1714; to = 1764; } # KDE Connect + ]; + allowedUDPPortRanges = [ + { from = 1714; to = 1764; } # KDE Connect + ]; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions diff --git a/themes/catppuccin.nix b/themes/catppuccin.nix index b284931c..d18a4f4a 100644 --- a/themes/catppuccin.nix +++ b/themes/catppuccin.nix @@ -6,9 +6,10 @@ let , item , rev ? "main" , sha256 ? pkgs.lib.fakeSha256 + , override ? null }: pkgs.stdenv.mkDerivation { - inherit version; + inherit version override; pname = item; src = pkgs.fetchFromGitHub { inherit owner rev sha256; @@ -20,9 +21,14 @@ let cp -r ./* $out/ ''; }; + + flavors = [ "latte" "frappe" "macchiato" "mocha" ]; + mapFlavor = flavorMap: (flavor: { + name = flavor; + value = flavorMap flavor; + }) flavors; in { - bat = mkCatppuccin { item = "bat"; sha256 = "sha256-yHt3oIjUnljARaihalcWSNldtaJfVDfmfiecYfbzGs0"; @@ -42,4 +48,10 @@ in item = "fish"; sha256 = "sha256-Dc/zdxfzAUM5NX8PxzfljRbYvO9f9syuLO8yBr+R3qg"; }; + + ironbar = mkCatppuccin { + item = "waybar"; + rev = "v1.0"; + sha256 = "sha256-vfwfBE3iqIN1cGoItSssR7h0z6tuJAhNarkziGFlNBw"; + }; }