feat: Added discord and slack to linux

This commit is contained in:
uttarayan21
2025-05-14 23:14:17 +05:30
parent 46cc0bc90c
commit e9134e928a
6 changed files with 41 additions and 6 deletions

View File

@@ -27,5 +27,7 @@ lib.optionalAttrs device.hasGui {
./wezterm.nix
./zathura.nix
./zed.nix
./discord.nix
./slack.nix
];
}

10
home/apps/discord.nix Normal file
View File

@@ -0,0 +1,10 @@
{
pkgs,
lib,
...
}: {
home.packages = lib.optionals pkgs.stdenv.isLinux [
pkgs.discord
pkgs.webcord
];
}

9
home/apps/slack.nix Normal file
View File

@@ -0,0 +1,9 @@
{
pkgs,
lib,
...
}: {
home.packages = lib.optionals pkgs.stdenv.isLinux [
pkgs.slack
];
}

View File

@@ -21,8 +21,6 @@
};
home.packages = with pkgs;
lib.optionals pkgs.stdenv.isLinux [
discord
jdk
mullvad-closest
mullvad-vpn
nautilus

View File

@@ -102,8 +102,11 @@
];
boot.extraModulePackages = [];
# services.udev.packages = [pkgs.yubikey-personalization pkgs.yubikey-personalization-gui pkgs.via];
services.udev.packages = [pkgs.via];
services.yubikey-agent.enable = true;
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1;
# services.udev.packages = [pkgs.via];
# services.yubikey-agent.enable = true;
services.udev.extraRules = ''
KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660"
'';

View File

@@ -1,9 +1,22 @@
{...}: {
{
pkgs,
lib,
...
}: {
services = {
tailscale = {
enable = true;
useRoutingFeatures = true;
useRoutingFeatures = "both";
extraUpFlags = ["--advertise-routes=192.168.0.0/24"];
};
networkd-dispatcher = {
enable = true;
rules."50-tailscale" = {
onState = ["routable"];
script = ''
${lib.getExe pkgs.ethtool} -K en01 rx-udp-gro-forwarding on rg-xgro-list off
'';
};
};
};
}