From 4203f0b01a1fd112068b30c02410b34bee7a6055 Mon Sep 17 00:00:00 2001 From: tux Date: Fri, 13 Jun 2025 20:40:08 +0530 Subject: [PATCH] feat: setup nixcord --- flake.lock | 108 +++++++++++++++++++++++++++---- flake.nix | 1 + hosts/canopus/home.nix | 2 +- modules/home/discord/default.nix | 40 ++++++++++++ overlays/default.nix | 4 -- 5 files changed, 138 insertions(+), 17 deletions(-) create mode 100644 modules/home/discord/default.nix diff --git a/flake.lock b/flake.lock index 0bbea29..89519d3 100755 --- a/flake.lock +++ b/flake.lock @@ -160,7 +160,7 @@ }, "emacs": { "inputs": { - "nixpkgs": "nixpkgs_5", + "nixpkgs": "nixpkgs_6", "nixpkgs-stable": "nixpkgs-stable" }, "locked": { @@ -249,6 +249,20 @@ } }, "flake-compat_4": { + "locked": { + "lastModified": 1733328505, + "narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=", + "rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec", + "revCount": 69, + "type": "tarball", + "url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.1.0/01948eb7-9cba-704f-bbf3-3fa956735b52/source.tar.gz?rev=ff81ac966bb2cae68946d5ed5fc4994f96d0ffec&revCount=69" + }, + "original": { + "type": "tarball", + "url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz" + } + }, + "flake-compat_5": { "flake": false, "locked": { "lastModified": 1733328505, @@ -265,6 +279,24 @@ } }, "flake-parts": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib" + }, + "locked": { + "lastModified": 1749398372, + "narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-parts_2": { "inputs": { "nixpkgs-lib": [ "nur", @@ -856,6 +888,26 @@ "type": "github" } }, + "nixcord": { + "inputs": { + "flake-compat": "flake-compat_4", + "flake-parts": "flake-parts", + "nixpkgs": "nixpkgs_4" + }, + "locked": { + "lastModified": 1749805702, + "narHash": "sha256-+g3t4xgev1v7g4TjnXqvhAFyBY2qSsfFmjFHwv8yX7w=", + "owner": "kaylorben", + "repo": "nixcord", + "rev": "eab4667ffea767139ec31fb97230b9fadf0c8500", + "type": "github" + }, + "original": { + "owner": "kaylorben", + "repo": "nixcord", + "type": "github" + } + }, "nixos-hardware": { "locked": { "lastModified": 1749195551, @@ -873,7 +925,7 @@ }, "nixos-wsl": { "inputs": { - "flake-compat": "flake-compat_4", + "flake-compat": "flake-compat_5", "nixpkgs": [ "nixpkgs" ] @@ -927,7 +979,7 @@ "nixpkgs-f2k": { "inputs": { "emacs": "emacs", - "nixpkgs": "nixpkgs_6", + "nixpkgs": "nixpkgs_7", "nixpkgs-fmt": "nixpkgs-fmt", "parts": "parts" }, @@ -999,6 +1051,21 @@ "type": "github" } }, + "nixpkgs-lib_2": { + "locked": { + "lastModified": 1748740939, + "narHash": "sha256-rQaysilft1aVMwF14xIdGS3sj1yHlI6oKQNBRTF40cc=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "656a64127e9d791a334452c6b6606d17539476e2", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, "nixpkgs-stable": { "locked": { "lastModified": 1749173751, @@ -1061,6 +1128,22 @@ } }, "nixpkgs_4": { + "locked": { + "lastModified": 1749494155, + "narHash": "sha256-FG4DEYBpROupu758beabUk9lhrblSf5hnv84v1TLqMc=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "88331c17ba434359491e8d5889cce872464052c2", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-25.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_5": { "locked": { "lastModified": 1749285348, "narHash": "sha256-frdhQvPbmDYaScPFiCnfdh3B/Vh81Uuoo0w5TkWmmjU=", @@ -1076,7 +1159,7 @@ "type": "github" } }, - "nixpkgs_5": { + "nixpkgs_6": { "locked": { "lastModified": 1749285348, "narHash": "sha256-frdhQvPbmDYaScPFiCnfdh3B/Vh81Uuoo0w5TkWmmjU=", @@ -1092,7 +1175,7 @@ "type": "github" } }, - "nixpkgs_6": { + "nixpkgs_7": { "locked": { "lastModified": 1749438937, "narHash": "sha256-yYScTKjoFKVSB//8ndtiTdh7vxZooZVK84TOsg0awzI=", @@ -1108,7 +1191,7 @@ "type": "github" } }, - "nixpkgs_7": { + "nixpkgs_8": { "locked": { "lastModified": 1749285348, "narHash": "sha256-frdhQvPbmDYaScPFiCnfdh3B/Vh81Uuoo0w5TkWmmjU=", @@ -1124,7 +1207,7 @@ "type": "github" } }, - "nixpkgs_8": { + "nixpkgs_9": { "locked": { "lastModified": 1744868846, "narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=", @@ -1196,8 +1279,8 @@ }, "nur": { "inputs": { - "flake-parts": "flake-parts", - "nixpkgs": "nixpkgs_7", + "flake-parts": "flake-parts_2", + "nixpkgs": "nixpkgs_8", "treefmt-nix": "treefmt-nix" }, "locked": { @@ -1216,7 +1299,7 @@ }, "parts": { "inputs": { - "nixpkgs-lib": "nixpkgs-lib" + "nixpkgs-lib": "nixpkgs-lib_2" }, "locked": { "lastModified": 1749398372, @@ -1268,9 +1351,10 @@ "nix-on-droid": "nix-on-droid", "nix-secrets": "nix-secrets", "nix-vscode-extensions": "nix-vscode-extensions", + "nixcord": "nixcord", "nixos-hardware": "nixos-hardware", "nixos-wsl": "nixos-wsl", - "nixpkgs": "nixpkgs_4", + "nixpkgs": "nixpkgs_5", "nixpkgs-f2k": "nixpkgs-f2k", "nixpkgs-stable": "nixpkgs-stable_2", "nur": "nur", @@ -1339,7 +1423,7 @@ }, "sops-nix": { "inputs": { - "nixpkgs": "nixpkgs_8" + "nixpkgs": "nixpkgs_9" }, "locked": { "lastModified": 1747603214, diff --git a/flake.nix b/flake.nix index d86c04a..ecc4418 100755 --- a/flake.nix +++ b/flake.nix @@ -161,5 +161,6 @@ impermanence.url = "github:nix-community/impermanence"; deploy-rs.url = "github:serokell/deploy-rs"; hyprland.url = "github:hyprwm/Hyprland"; + nixcord.url = "github:kaylorben/nixcord"; }; } diff --git a/hosts/canopus/home.nix b/hosts/canopus/home.nix index 0fd0957..1e5e0d5 100644 --- a/hosts/canopus/home.nix +++ b/hosts/canopus/home.nix @@ -18,6 +18,7 @@ ../../modules/home/mopidy ../../modules/home/thunderbird ../../modules/home/easyeffects + ../../modules/home/discord ]; home.pointerCursor = { @@ -48,7 +49,6 @@ }; home.packages = with pkgs; [ - discord telegram-desktop anydesk stable.rustdesk-flutter diff --git a/modules/home/discord/default.nix b/modules/home/discord/default.nix new file mode 100644 index 0000000..3cdcf15 --- /dev/null +++ b/modules/home/discord/default.nix @@ -0,0 +1,40 @@ +{inputs, ...}: { + imports = [ + inputs.nixcord.homeModules.nixcord + ]; + + programs.nixcord = { + enable = true; + vesktop.enable = true; + dorion.enable = true; + config = { + themeLinks = [ + "https://raw.githubusercontent.com/refact0r/system24/refs/heads/main/archive/flavors/spotify-text.theme.css" + ]; + frameless = true; + plugins = { + hideAttachments.enable = true; + ignoreActivities = { + enable = true; + ignorePlaying = true; + ignoreWatching = true; + }; + }; + }; + dorion = { + theme = "dark"; + zoom = "1.1"; + blur = "acrylic"; + sysTray = true; + openOnStartup = true; + autoClearCache = true; + disableHardwareAccel = false; + rpcServer = true; + rpcProcessScanner = true; + pushToTalk = true; + pushToTalkKeys = ["RControl"]; + desktopNotifications = true; + unreadBadge = true; + }; + }; +} diff --git a/overlays/default.nix b/overlays/default.nix index 3fc92fa..97ae37e 100755 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -11,10 +11,6 @@ tfolio = inputs.tfolio.packages.${prev.system}.default; trok = inputs.trok.packages.${prev.system}.default; cyber-tux = inputs.cyber-tux.packages.${prev.system}.default; - discord = prev.discord.override { - withOpenASAR = true; - withVencord = true; - }; hyprland-git = inputs.hyprland.packages.${prev.system}; };