From 3b4adae6c2b79d463249a7c09769790d6b810f9b Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Sun, 9 Mar 2025 21:30:36 +0100 Subject: [PATCH] use nixcord --- common/discord/discord.nix | 38 ++++++++++---- flake.lock | 104 ++++++++++++++++++++++++++++++++++++- flake.nix | 4 ++ 3 files changed, 134 insertions(+), 12 deletions(-) diff --git a/common/discord/discord.nix b/common/discord/discord.nix index bfa0220..f37fdbc 100644 --- a/common/discord/discord.nix +++ b/common/discord/discord.nix @@ -1,16 +1,34 @@ { - pkgs, + inputs, ... }: { - home.packages = with pkgs; [ - (symlinkJoin { - name = "vesktop"; - paths = [ - (writeShellScriptBin "vesktop" ''${vesktop}/bin/vesktop --enable-features=UseOzonePlatform --ozone-platform=wayland'') - (writeShellScriptBin "Vesktop" ''${vesktop}/bin/Vesktop --enable-features=UseOzonePlatform --ozone-platform=wayland'') - vesktop - ]; - }) + imports = [ + inputs.nixcord.homeManagerModules.nixcord ]; + programs.nixcord = { + enable = true; + config = { + frameless = true; + plugins = { + blurNSFW.enable = true; + fakeNitro.enable = true; + fixSpotifyEmbeds.enable = true; + callTimer.enable = true; + clearURLs.enable = true; + fixYoutubeEmbeds.enable = true; + noF1.enable = true; + petpet.enable = true; + replaceGoogleSearch = { + enable = true; + customEngineName = "duck duck go"; + customEngineURL = "https://duckduckgo.com/"; + }; + spotifyCrack.enable = true; + typingTweaks.enable = true; + unindent.enable = true; + validReply.enable = true; + }; + }; + }; } diff --git a/flake.lock b/flake.lock index c46d558..2bc3867 100644 --- a/flake.lock +++ b/flake.lock @@ -367,6 +367,20 @@ "type": "github" } }, + "flake-compat_4": { + "locked": { + "lastModified": 1696426674, + "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", + "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "revCount": 57, + "type": "tarball", + "url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.0.1/018afb31-abd1-7bff-a5e4-cff7e18efb7a/source.tar.gz" + }, + "original": { + "type": "tarball", + "url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz" + } + }, "flake-parts": { "inputs": { "nixpkgs-lib": [ @@ -463,7 +477,7 @@ }, "flake-utils_5": { "inputs": { - "systems": "systems_6" + "systems": "systems_7" }, "locked": { "lastModified": 1731533236, @@ -800,6 +814,27 @@ "type": "github" } }, + "nixcord": { + "inputs": { + "flake-compat": "flake-compat_4", + "nixpkgs": "nixpkgs_5", + "systems": "systems_6", + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1741307969, + "narHash": "sha256-JxWxScHu0g/ltTas3ZvwPX/J6xhHm540+FY8ZfTigDg=", + "owner": "kaylorben", + "repo": "nixcord", + "rev": "269b69665a78f57f2bc1b62e05e823815f41cea9", + "type": "github" + }, + "original": { + "owner": "kaylorben", + "repo": "nixcord", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1703013332, @@ -943,6 +978,38 @@ } }, "nixpkgs_5": { + "locked": { + "lastModified": 1737003892, + "narHash": "sha256-RCzJE9wKByLCXmRBp+z8LK9EgdW+K+W/DXnJS4S/NVo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "ae06b9c2d83cb5c8b12d7d0e32692e93d1379713", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_6": { + "locked": { + "lastModified": 1735554305, + "narHash": "sha256-zExSA1i/b+1NMRhGGLtNfFGXgLtgo+dcuzHzaWA6w3Q=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "0e82ab234249d8eee3e8c91437802b32c74bb3fd", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_7": { "locked": { "lastModified": 1741505598, "narHash": "sha256-2+xYl5jCJpzJKY1XPhneg/fx5R20P2+VGtvPmArn9Uo=", @@ -1021,7 +1088,8 @@ "mailserver": "mailserver", "niri": "niri", "nix-colors": "nix-colors", - "nixpkgs": "nixpkgs_5", + "nixcord": "nixcord", + "nixpkgs": "nixpkgs_7", "oxalica": "oxalica", "tsunami": "tsunami_2" } @@ -1154,8 +1222,40 @@ "type": "github" }, "original": { + "id": "systems", + "type": "indirect" + } + }, + "systems_7": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "owner": "nix-systems", "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "treefmt-nix": { + "inputs": { + "nixpkgs": "nixpkgs_6" + }, + "locked": { + "lastModified": 1737103437, + "narHash": "sha256-uPNWcYbhY2fjY3HOfRCR5jsfzdzemhfxLSxwjXYXqNc=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "d1ed3b385f8130e392870cfb1dbfaff8a63a1899", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", "type": "github" } }, diff --git a/flake.nix b/flake.nix index 5d48a73..0a29799 100644 --- a/flake.nix +++ b/flake.nix @@ -73,6 +73,10 @@ url = "https://git.lix.systems/lix-project/nixos-module/archive/2.92.0.tar.gz"; inputs.nixpkgs.follows = "nixpkgs"; }; + + nixcord = { + url = "github:kaylorben/nixcord"; + }; }; outputs =