feat(desktop): add nixcord module
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
de5e8c58d2
commit
22d186472e
4 changed files with 140 additions and 17 deletions
45
flake.lock
generated
45
flake.lock
generated
|
@ -258,6 +258,20 @@
|
|||
}
|
||||
},
|
||||
"flake-compat_2": {
|
||||
"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-compat_3": {
|
||||
"locked": {
|
||||
"lastModified": 1717312683,
|
||||
"narHash": "sha256-FrlieJH50AuvagamEvWMIE6D2OAnERuDboFDYAED/dE=",
|
||||
|
@ -1321,6 +1335,34 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixcord": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat_2",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
],
|
||||
"systems": [
|
||||
"systems"
|
||||
],
|
||||
"treefmt-nix": [
|
||||
"treefmt-nix"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1737041061,
|
||||
"narHash": "sha256-Pt17hcx/QDLI4hqw2vY4o/Fowo7rWV+6gVk8yMENnuY=",
|
||||
"owner": "kaylorben",
|
||||
"repo": "nixcord",
|
||||
"rev": "02247bedd6988a1169c4499406970b92bfd8aa02",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "kaylorben",
|
||||
"repo": "nixcord",
|
||||
"rev": "02247bedd6988a1169c4499406970b92bfd8aa02",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixd": {
|
||||
"inputs": {
|
||||
"flake-parts": [
|
||||
|
@ -1413,7 +1455,7 @@
|
|||
},
|
||||
"nixpkgs-wayland": {
|
||||
"inputs": {
|
||||
"flake-compat": "flake-compat_2",
|
||||
"flake-compat": "flake-compat_3",
|
||||
"lib-aggregate": [
|
||||
"lib-aggregate"
|
||||
],
|
||||
|
@ -1688,6 +1730,7 @@
|
|||
"nix-gaming": "nix-gaming",
|
||||
"nix-index-db": "nix-index-db",
|
||||
"nix-on-droid": "nix-on-droid",
|
||||
"nixcord": "nixcord",
|
||||
"nixd": "nixd",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"nixpkgs-wayland": "nixpkgs-wayland",
|
||||
|
|
11
flake.nix
11
flake.nix
|
@ -320,6 +320,17 @@
|
|||
repo = "nix-on-droid";
|
||||
type = "github";
|
||||
};
|
||||
nixcord = {
|
||||
inputs = {
|
||||
nixpkgs.follows = "nixpkgs";
|
||||
systems.follows = "systems";
|
||||
treefmt-nix.follows = "treefmt-nix";
|
||||
};
|
||||
owner = "kaylorben";
|
||||
repo = "nixcord";
|
||||
rev = "02247bedd6988a1169c4499406970b92bfd8aa02";
|
||||
type = "github";
|
||||
};
|
||||
nixd = {
|
||||
inputs = {
|
||||
flake-parts.follows = "flake-parts";
|
||||
|
|
|
@ -145,6 +145,14 @@ let
|
|||
owner = "eriedaberrie";
|
||||
repo = "grim-hyprland";
|
||||
};
|
||||
|
||||
nixcord = mkDep {
|
||||
owner = "kaylorben";
|
||||
repo = "nixcord";
|
||||
|
||||
# FIXME: https://github.com/KaylorBen/nixcord/pull/69
|
||||
rev = "02247bedd6988a1169c4499406970b92bfd8aa02";
|
||||
};
|
||||
};
|
||||
|
||||
agsInputs = {
|
||||
|
|
|
@ -5,7 +5,7 @@ self: {
|
|||
...
|
||||
}: let
|
||||
inherit (self.lib.hypr) mkBind;
|
||||
inherit (self.inputs) jellyfin-flake;
|
||||
inherit (self.inputs) jellyfin-flake nixcord;
|
||||
|
||||
inherit (lib) attrValues getExe mkIf optionals;
|
||||
inherit (pkgs.writers) writeTOML;
|
||||
|
@ -43,6 +43,8 @@ in {
|
|||
(import ../home/mpv.nix self)
|
||||
(import ../home/obs.nix self)
|
||||
|
||||
nixcord.homeManagerModules.nixcord
|
||||
|
||||
({config, ...}: let
|
||||
inherit (config.lib.file) mkOutOfStoreSymlink;
|
||||
configDir = "${flakeDir}/modules/desktop/environment/config";
|
||||
|
@ -66,14 +68,80 @@ in {
|
|||
})
|
||||
];
|
||||
|
||||
programs.sioyek = {
|
||||
enable = true;
|
||||
programs = {
|
||||
nixcord = {
|
||||
enable = true;
|
||||
|
||||
config = {
|
||||
startup_commands = "toggle_custom_color";
|
||||
ui_font = "JetBrainsMono Nerd Font Mono Regular";
|
||||
font_size = "24";
|
||||
source = toString self.scopedPackages.${pkgs.system}.dracula.sioyek;
|
||||
discord = {
|
||||
vencord.unstable = true;
|
||||
|
||||
settings = {
|
||||
skipHostUpdate = true;
|
||||
dangerousEnableDevtoolsOnlyEnableIfYouKnowWhatYoureDoing = true;
|
||||
minWidth = 940;
|
||||
minHeight = 500;
|
||||
isMaximized = true;
|
||||
isMinimized = false;
|
||||
enableHardwareAcceleration = !isNvidia;
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
notifyAboutUpdates = false;
|
||||
autoUpdate = false;
|
||||
autoUpdateNotification = false;
|
||||
|
||||
themeLinks = [
|
||||
"https://markchan0225.github.io/RoundedDiscord/RoundedDiscord.theme.css"
|
||||
"https://raw.githubusercontent.com/dracula/BetterDiscord/master/Dracula_Official.theme.css"
|
||||
];
|
||||
|
||||
plugins = {
|
||||
alwaysTrust.enable = true;
|
||||
biggerStreamPreview.enable = true;
|
||||
clearURLs.enable = true;
|
||||
crashHandler.enable = true;
|
||||
disableCallIdle.enable = true;
|
||||
emoteCloner.enable = true;
|
||||
imageZoom.enable = true;
|
||||
memberCount.enable = true;
|
||||
messageLinkEmbeds.enable = true;
|
||||
|
||||
messageLogger = {
|
||||
enable = true;
|
||||
ignoreBots = true;
|
||||
ignoreSelf = true;
|
||||
};
|
||||
|
||||
mutualGroupDMs.enable = true;
|
||||
onePingPerDM.enable = true;
|
||||
openInApp.enable = true;
|
||||
platformIndicators.enable = true;
|
||||
previewMessage.enable = true;
|
||||
readAllNotificationsButton.enable = true;
|
||||
reverseImageSearch.enable = true;
|
||||
spotifyCrack.enable = true;
|
||||
themeAttributes.enable = true;
|
||||
typingIndicator.enable = true;
|
||||
typingTweaks.enable = true;
|
||||
viewIcons.enable = true;
|
||||
viewRaw.enable = true;
|
||||
voiceChatDoubleClick.enable = true;
|
||||
volumeBooster.enable = true;
|
||||
whoReacted.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
sioyek = {
|
||||
enable = true;
|
||||
|
||||
config = {
|
||||
startup_commands = "toggle_custom_color";
|
||||
ui_font = "JetBrainsMono Nerd Font Mono Regular";
|
||||
font_size = "24";
|
||||
source = toString self.scopedPackages.${pkgs.system}.dracula.sioyek;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -96,6 +164,7 @@ in {
|
|||
swayimg
|
||||
nextcloud-client
|
||||
prismlauncher
|
||||
vesktop # screen-sharing on desktop
|
||||
;
|
||||
|
||||
# tools
|
||||
|
@ -116,14 +185,6 @@ in {
|
|||
.jellyfin-media-player
|
||||
.override {isNvidiaWayland = isNvidia;};
|
||||
|
||||
/*
|
||||
Discord themes for Vencord
|
||||
https://markchan0225.github.io/RoundedDiscord/RoundedDiscord.theme.css
|
||||
https://raw.githubusercontent.com/dracula/BetterDiscord/master/Dracula_Official.theme.css
|
||||
*/
|
||||
discord = pkgs.discord.override {withVencord = true;};
|
||||
inherit (pkgs) vesktop;
|
||||
|
||||
GParted = let
|
||||
inherit (pkgs) writeShellScriptBin libsForQt5 gparted makeWrapper symlinkJoin;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue