Compare commits

...

2 commits

Author SHA1 Message Date
400517a2f1
discord
Some checks failed
/ lint (push) Failing after 36s
2026-02-10 00:06:52 +01:00
d7528b9793
extra cli programs 2026-02-09 23:28:12 +01:00
3 changed files with 121 additions and 2 deletions

View file

@ -109,7 +109,7 @@
pipethon = pipethon.packages.${system}.python; pipethon = pipethon.packages.${system}.python;
niri = niri-unstable.packages.${system}.niri; niri = niri-unstable.packages.${system}.niri;
raw-data = raw-data.packages.${system}.default; raw-data = raw-data.packages.${system}.default;
# maple-mono = maple-mono = pkgs.maple-mono;
}; };
p1n3appl3 = inputs.p1n3appl3.packages.${system}; p1n3appl3 = inputs.p1n3appl3.packages.${system};
}) })

View file

@ -67,7 +67,6 @@
pkgs.custom.niri pkgs.custom.niri
zed-editor zed-editor
signal-desktop signal-desktop
discord
nautilus nautilus
adwaita-icon-theme adwaita-icon-theme

View file

@ -29,6 +29,122 @@ _: {
}; };
}; };
custom.program.discord = {
requirements = [ "graphical" ];
home-config =
{
config,
pkgs,
lib,
...
}:
let
disableFeatures = [
"WebRtcAllowInputVolumeAdjustment"
"ChromeWideEchoCancellation"
];
enableFeatures = [ ];
commandLineArgs =
lib.optionals (enableFeatures != [ ]) [
"--enable-features=${lib.concatStringsSep "," enableFeatures}"
]
++ lib.optionals (disableFeatures != [ ]) [
"--disable-features=${lib.concatStringsSep "," disableFeatures}"
];
joinedArgs = lib.concatStringsSep " " commandLineArgs;
in
{
home.file."${config.xdg.configHome}/discord/settings.json".source = pkgs.writeText "settings.json" (
lib.strings.toJSON (
let
endpoint = "https://inject.shelter.uwu.network/shelter+yt_ad_block+yt_embed_fix";
in
{
SKIP_HOST_UPDATE = true;
MINIMIZE_TO_TRAY = false;
OPEN_ON_STARTUP = false;
DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING = true;
enableHardwareAcceleration = true;
UPDATE_ENDPOINT = endpoint;
NEW_UPDATE_ENDPOINT = "${endpoint}/";
BACKGROUND_COLOR = "#2c2d32";
openasar = {
setup = true;
# using the performance preset breaks vaapi
cmdPreset = "balanced";
# quickstart is buggy and breaks discord sometimes.
quickstart = false;
# this css is made for discord compact mode. if you're not using that, stuff won't align!!
css =
# css
''
/* Hide nitro begging */
@import url("https://raw.codeberg.page/AllPurposeMat/Disblock-Origin/DisblockOrigin.theme.css");
/* Hide the Visual Refresh title bar */
.visual-refresh {
/* Hide the bar itself */
--custom-app-top-bar-height: 0px !important;
/* Title bar buttons are still visible so hide them too */
div.base__5e434 > div.bar_c38106 {
display: none;
}
/* Bring the server list down a few pixels */
ul[data-list-id="guildsnav"] > div.itemsContainer_ef3116 {
margin-top: 8px;
}
}
:root {
/* Disblock settings */
--display-clan-tags: none;
--display-active-now: none;
--display-hover-reaction-emoji: none;
--bool-show-name-gradients: false;
}
/* Make "Read All" vencord button text smaller */
button.vc-ranb-button {
font-size: 9.5pt;
font-weight: normal;
}
/* Hide Discover button */
div[data-list-item-id="guildsnav___guild-discover-button"] {
display: none !important;
}
/* Hide voice settings menus in user panel */
div[class^="micButtonParent__"] button[role="switch"] {
border-radius: var(--radius-sm);
& ~ button { display: none; }
}
/* Also reduce the gap between the buttons */
div.container__37e49 > div.buttons__37e49 {
gap: 1px;
}
'';
};
}
)
);
home.packages = with pkgs; [
(discord.override {
# we disable updates in settings.json
disableUpdates = false;
commandLineArgs = joinedArgs;
withTTS = false;
enableAutoscroll = true;
withOpenASAR = true;
})
];
};
};
custom.program.fun-packages = { custom.program.fun-packages = {
requirements = [ "fun" ]; requirements = [ "fun" ];
home-config = home-config =
@ -65,6 +181,7 @@ _: {
wget wget
comma comma
unzip unzip
pciutils
# dev tools # dev tools
gdb gdb
@ -75,6 +192,9 @@ _: {
unixtools.xxd unixtools.xxd
net-tools net-tools
sqlite-interactive sqlite-interactive
tokei
just
uv
(writeShellScriptBin "nas" '' (writeShellScriptBin "nas" ''
mkdir -p ~/Documents/nas mkdir -p ~/Documents/nas