apps: discord

This commit is contained in:
js0ny 2025-11-19 20:47:35 +00:00
parent bddc75a08b
commit dc742c2b52
21 changed files with 221 additions and 50 deletions

150
nixcfgs/flake.lock generated
View file

@ -121,7 +121,7 @@
},
"devshell": {
"inputs": {
"nixpkgs": "nixpkgs_5"
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1741473158,
@ -159,6 +159,20 @@
}
},
"flake-compat": {
"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_2": {
"flake": false,
"locked": {
"lastModified": 1696426674,
@ -196,6 +210,24 @@
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1754091436,
"narHash": "sha256-XKqDMN1/Qj1DKivQvscI4vmHfDfvYR2pfuFOJiCeewM=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "67df8c627c2c39c41dbec76a1f201929929ab0bd",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_3": {
"inputs": {
"nixpkgs-lib": [
"nur",
@ -216,9 +248,9 @@
"type": "github"
}
},
"flake-parts_3": {
"flake-parts_4": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
"nixpkgs-lib": "nixpkgs-lib_2"
},
"locked": {
"lastModified": 1751413152,
@ -296,7 +328,7 @@
},
"home-manager_2": {
"inputs": {
"nixpkgs": "nixpkgs_6"
"nixpkgs": "nixpkgs_7"
},
"locked": {
"lastModified": 1756842514,
@ -386,7 +418,7 @@
"hyprlang": "hyprlang",
"hyprutils": "hyprutils",
"hyprwayland-scanner": "hyprwayland-scanner",
"nixpkgs": "nixpkgs_7",
"nixpkgs": "nixpkgs_8",
"pre-commit-hooks": "pre-commit-hooks",
"systems": "systems_3",
"xdph": "xdph"
@ -700,6 +732,26 @@
"type": "github"
}
},
"nixcord": {
"inputs": {
"flake-compat": "flake-compat",
"flake-parts": "flake-parts_2",
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1763223362,
"narHash": "sha256-iH+tM4MmtYMfWuWoo6KIc7Al+zQL13f3ScJloqSKyAs=",
"owner": "kaylorben",
"repo": "nixcord",
"rev": "35c173408a25cae1c5af23b9d4fd80a181a395d4",
"type": "github"
},
"original": {
"owner": "kaylorben",
"repo": "nixcord",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1762482733,
@ -717,6 +769,21 @@
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1753579242,
"narHash": "sha256-zvaMGVn14/Zz8hnp4VWT9xVnhc8vuL3TStRqwk22biA=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "0f36c44e01a6129be94e3ade315a5883f0228a6e",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"nixpkgs-lib_2": {
"locked": {
"lastModified": 1751159883,
"narHash": "sha256-urW/Ylk9FIfvXfliA1ywh75yszAbiTEVgpPeinFyVZo=",
@ -763,6 +830,22 @@
"type": "github"
}
},
"nixpkgs_10": {
"locked": {
"lastModified": 1747958103,
"narHash": "sha256-qmmFCrfBwSHoWw7cVK4Aj+fns+c54EBP8cGqp/yK410=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "fe51d34885f7b5e3e7b59572796e1bcb427eccb1",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1762844143,
@ -780,6 +863,22 @@
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1754028485,
"narHash": "sha256-IiiXB3BDTi6UqzAZcf2S797hWEPCRZOwyNThJIYhUfk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "59e69648d345d6e8fef86158c555730fa12af9de",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1762604901,
"narHash": "sha256-Pr2jpryIaQr9Yx8p6QssS03wqB6UifnnLr3HJw9veDw=",
@ -795,7 +894,7 @@
"type": "github"
}
},
"nixpkgs_4": {
"nixpkgs_5": {
"locked": {
"lastModified": 1762844143,
"narHash": "sha256-SlybxLZ1/e4T2lb1czEtWVzDCVSTvk9WLwGhmxFmBxI=",
@ -811,7 +910,7 @@
"type": "github"
}
},
"nixpkgs_5": {
"nixpkgs_6": {
"locked": {
"lastModified": 1722073938,
"narHash": "sha256-OpX0StkL8vpXyWOGUD6G+MA26wAXK6SpT94kLJXo6B4=",
@ -827,7 +926,7 @@
"type": "github"
}
},
"nixpkgs_6": {
"nixpkgs_7": {
"locked": {
"lastModified": 1756542300,
"narHash": "sha256-tlOn88coG5fzdyqz6R93SQL5Gpq+m/DsWpekNFhqPQk=",
@ -843,7 +942,7 @@
"type": "github"
}
},
"nixpkgs_7": {
"nixpkgs_8": {
"locked": {
"lastModified": 1751792365,
"narHash": "sha256-J1kI6oAj25IG4EdVlg2hQz8NZTBNYvIS0l4wpr9KcUo=",
@ -859,7 +958,7 @@
"type": "github"
}
},
"nixpkgs_8": {
"nixpkgs_9": {
"locked": {
"lastModified": 1756819007,
"narHash": "sha256-12V64nKG/O/guxSYnr5/nq1EfqwJCdD2+cIGmhz3nrE=",
@ -875,26 +974,10 @@
"type": "github"
}
},
"nixpkgs_9": {
"locked": {
"lastModified": 1747958103,
"narHash": "sha256-qmmFCrfBwSHoWw7cVK4Aj+fns+c54EBP8cGqp/yK410=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "fe51d34885f7b5e3e7b59572796e1bcb427eccb1",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nur": {
"inputs": {
"flake-parts": "flake-parts_2",
"nixpkgs": "nixpkgs_4"
"flake-parts": "flake-parts_3",
"nixpkgs": "nixpkgs_5"
},
"locked": {
"lastModified": 1762951833,
@ -935,7 +1018,7 @@
},
"pre-commit-hooks": {
"inputs": {
"flake-compat": "flake-compat",
"flake-compat": "flake-compat_2",
"gitignore": "gitignore",
"nixpkgs": [
"xremap-flake",
@ -987,7 +1070,8 @@
"niri-flake": "niri-flake",
"nix-darwin": "nix-darwin",
"nix-flatpak": "nix-flatpak",
"nixpkgs": "nixpkgs_3",
"nixcord": "nixcord",
"nixpkgs": "nixpkgs_4",
"nixpkgs-stable": "nixpkgs-stable_2",
"nur": "nur",
"plasma-manager": "plasma-manager",
@ -1063,7 +1147,7 @@
},
"treefmt-nix": {
"inputs": {
"nixpkgs": "nixpkgs_9"
"nixpkgs": "nixpkgs_10"
},
"locked": {
"lastModified": 1750931469,
@ -1147,10 +1231,10 @@
"inputs": {
"crane": "crane",
"devshell": "devshell",
"flake-parts": "flake-parts_3",
"flake-parts": "flake-parts_4",
"home-manager": "home-manager_2",
"hyprland": "hyprland",
"nixpkgs": "nixpkgs_8",
"nixpkgs": "nixpkgs_9",
"treefmt-nix": "treefmt-nix",
"xremap": "xremap"
},

View file

@ -45,6 +45,7 @@
url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
nixcord.url = "github:kaylorben/nixcord";
};
outputs = {
@ -63,6 +64,7 @@
betterfox-nix,
firefox-addons,
zen-browser,
nixcord,
...
} @ inputs: let
overlays = [
@ -130,6 +132,7 @@
sops-nix.homeManagerModules.sops
niri-flake.homeModules.niri
betterfox-nix.modules.homeManager.betterfox
nixcord.homeModules.nixcord
];
};
"js0ny@nixvirt" = home-manager.lib.homeManagerConfiguration {

View file

@ -8,5 +8,10 @@
vscjava.vscode-spring-initializr
vscjava.vscode-java-pack
];
programs.zed-editor.extensions = ["java"];
programs.zed-editor = {
extensions = ["java"];
extraPackages = with pkgs; [
jdt-language-server
];
};
}

View file

@ -57,5 +57,6 @@
exiftool
ddgr # DuckDuckGo CLI
jujutsu
github-copilot-cli
];
}

View file

@ -15,8 +15,7 @@
"com.tencent.WeChat"
# "eu.betterbird.Betterbird"
# "com.baidu.NetDisk"
"com.discordapp.Discord"
"com.spotify.Client"
# "com.discordapp.Discord"
"com.google.EarthPro"
"com.wps.Office"
"md.obsidian.Obsidian"
@ -24,7 +23,7 @@
# "com.vivaldi.Vivaldi"
"com.getpostman.Postman"
"us.zoom.Zoom"
"com.ticktick.Ticktick"
"com.ticktick.TickTick"
];
services.flatpak.overrides = {
global = {
@ -50,6 +49,9 @@
};
"md.obsidian.Obsidian".Context.sockets = ["wayland"];
"com.ticktick.Ticktick".Context.sockets = ["wayland"];
"com.getpostman.Postman".Context.persistent = ["Postman"];
"com.getpostman.Postman".Context = {
persistent = ["Postman"];
sockets = ["wayland"];
};
};
}

View file

@ -47,6 +47,7 @@ in {
pcloud
materialgram
ayugram-desktop
steam
signal-desktop
# Use Wayland for Jetbrains
@ -71,13 +72,17 @@ in {
steam-run
bottles
lutris
vivaldi
rustdesk
kdePackages.krdc
kdePackages.breeze
zotero
anki-bin
feishin
bruno
bruno-cli
cider-2
kicad
blender
]
++ (mkFcitxIM [
pkgs.neovim-qt

View file

@ -122,9 +122,11 @@
{
matches = [
{app-id = "^org.telegram.desktop$";}
{app-id = "^io.github.kukuruzka165.materialgram$";}
{app-id = "^com.ayugram.desktop$";}
{app-id = "^wechat$";}
{app-id = "^QQ$";}
{app-id = "^io.github.kukuruzka165.materialgram$";}
{app-id = "^discord$";}
{app-id = "^thunderbird$";}
];
open-on-workspace = "info";
@ -132,6 +134,7 @@
{
matches = [
{app-id = "^feishin$";}
{app-id = "^Cider$";}
];
open-on-workspace = "bg";
}

View file

@ -47,9 +47,15 @@ in {
brightnessctl
playerctl
powerprofiles-next
blueman
];
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
};
xdg.portal = {
enable = true;
extraPortals = with pkgs; [xdg-desktop-portal-wlr xdg-desktop-portal-gtk];
};
services.blueman-applet.enable = true;
}

View file

@ -0,0 +1,39 @@
{...}: {
programs.nixcord = {
enable = true;
# Clients
discord = {
enable = true;
autoscroll.enable = true;
vencord.enable = true;
};
# Plugins
config = {
plugins = {
alwaysAnimate.enable = true;
alwaysTrust.enable = true;
clearURLs.enable = true;
copyFileContents.enable = true;
copyUserURLs.enable = true;
disableCallIdle.enable = true;
favoriteEmojiFirst.enable = true;
forceOwnerCrown.enable = true;
friendsSince.enable = true;
noDevtoolsWarning.enable = true;
readAllNotificationsButton.enable = true;
serverInfo.enable = true;
showMeYourName = {
enable = true;
mode = "nick-user";
};
silentMessageToggle.enable = true;
silentTyping.enable = true;
startupTimings.enable = true;
validReply.enable = true;
validUser.enable = true;
};
};
};
}

View file

@ -30,6 +30,7 @@ in {
# Privacy
google-container
facebook-container
dont-track-me-google1
### Site Specific
# Steam

View file

@ -20,6 +20,9 @@
# Disable Menu when pressing <Alt>
"ui.key.menuAccessKey" = -1;
"ui.key.menuAccessKeyFocuses" = false;
# Disable Translations
"browser.translations.enable" = false;
"browser.translations.automaticallyPopup" = false;
};
};
};

View file

@ -110,5 +110,11 @@
icon = "https://nixos.org/favicon.ico";
definedAliases = ["hm"];
};
flathub = {
name = "Flathub";
urls = [{template = "https://flathub.org/apps/search?q={searchTerms}";}];
icon = "https://flathub.org/favicon.ico";
definedAliases = ["flatpak" "flathub"];
};
};
}

View file

@ -2,7 +2,7 @@
# Why using nvim gui:
# * when `rga-fzf`: nvim wrapper failed to launch
# * nvim wrapper reports error on parsing filename with spaces
gvim = "nvim-qt.desktop";
gvim = "neovide.desktop";
in {
xdg.configFile."mimeapps.list".force = true;
xdg.mime.enable = true;
@ -18,6 +18,7 @@ in {
"text/x-csrc" = gvim; # .c
"text/x-chdr" = gvim; # .h
"text/javascript" = gvim;
"text/x-python" = gvim;
# CSV
"text/csv" = gvim;
"text/markdown" = gvim;

View file

@ -13,9 +13,12 @@ in {
# image support
pkg-config
imagemagick
stylua
nodejs-slim_24 # for copilot-lua
lua-language-server
];
};
home.packages = with pkgs; [lua-language-server];
# home.packages = with pkgs; [lua-language-server];
programs.fish.shellAbbrs = nvimAlias;
programs.bash.shellAliases = nvimAlias;
programs.zsh.shellAliases = nvimAlias;

View file

@ -44,6 +44,7 @@
./programs/retroarch.nix
./programs/neovide.nix
./programs/edit-clipboard.nix
./programs/discord.nix
# Desktop Linux
./programs/desktop/plasma
@ -58,6 +59,7 @@
# Development setup
../../modules/home/dev/nix.nix
../../modules/home/dev/java.nix
];
nixpkgs.config.allowUnfree = true;