Use local ArmCord as discord

This commit is contained in:
Natsu Kagami 2022-10-19 16:27:22 +02:00 committed by Natsu Kagami
parent c2bd235753
commit fd6df30f66

View file

@ -1,5 +1,12 @@
{ pkgs, config, lib, ... }: { pkgs, config, lib, ... }:
let
discord = pkgs.writeShellApplication {
name = "discord";
runtimeInputs = with pkgs; [ nodejs pkgs.unstable.electron ];
text = "cd ~/Projects/ArmCord/ && electron --force-device-scale-factor=1.5 ts-out/main.js";
};
in
{ {
imports = [ imports = [
# Common configuration # Common configuration
@ -25,6 +32,8 @@
firefox-wayland firefox-wayland
discord
# Java & sbt # Java & sbt
openjdk11 openjdk11
sbt sbt
@ -38,7 +47,7 @@
programs.my-sway.fontSize = 20.0; programs.my-sway.fontSize = 20.0;
programs.my-sway.enableLaptopBars = true; programs.my-sway.enableLaptopBars = true;
programs.my-sway.enableMpd = false; programs.my-sway.enableMpd = false;
programs.my-sway.discord = null; programs.my-sway.discord = "${discord}/bin/discord";
# Keyboard options # Keyboard options
wayland.windowManager.sway.config.input."type:keyboard".xkb_layout = "jp"; wayland.windowManager.sway.config.input."type:keyboard".xkb_layout = "jp";
wayland.windowManager.sway.config.output."Unknown-1" = { wayland.windowManager.sway.config.output."Unknown-1" = {
@ -50,7 +59,7 @@
# Keyboard stuff # Keyboard stuff
xkb_layout = "jp"; xkb_layout = "jp";
repeat_delay = "300"; repeat_delay = "300";
repeat_rate = "10"; repeat_rate = "15";
# Trackpad stuff # Trackpad stuff
accel_profile = "adaptive"; accel_profile = "adaptive";
drag = "enabled"; drag = "enabled";
@ -65,7 +74,7 @@
nki.programs.kitty = { nki.programs.kitty = {
enable = true; enable = true;
fontSize = 22; fontSize = 22;
enableTabs = true; enableTabs = false;
}; };
# Yellow light! # Yellow light!