2021-05-14 22:17:10 +03:00
|
|
|
{ config, pkgs, lib, ourLib, ... }:
|
2021-05-03 07:48:31 +03:00
|
|
|
let
|
|
|
|
inherit (lib) mapAttrs' nameValuePair;
|
|
|
|
inherit (builtins) readDir fetchGit;
|
2021-05-14 22:17:10 +03:00
|
|
|
pkgBin = ourLib.pkgBinNoDep pkgs;
|
2021-05-03 07:48:31 +03:00
|
|
|
|
|
|
|
nixosConfig = config;
|
|
|
|
in
|
|
|
|
{
|
2020-11-21 23:54:07 +03:00
|
|
|
|
|
|
|
users.users.patriot = {
|
|
|
|
isNormalUser = true;
|
|
|
|
createHome = true;
|
|
|
|
home = "/home/patriot";
|
2021-01-26 21:09:02 +03:00
|
|
|
extraGroups = [ "wheel" "adbusers" "dialout" ];
|
2020-11-21 23:54:07 +03:00
|
|
|
shell = pkgs.zsh;
|
|
|
|
hashedPassword =
|
|
|
|
"$6$spzqhAyJfhHy$iHgLBlhjGn1l8PnbjJdWTn1GPvcjMqYNKUzdCe/7IrX6sHNgETSr/Nfpdmq9FCXLhrAfwHOd/q/8SvfeIeNX4/";
|
|
|
|
};
|
|
|
|
|
2021-05-28 19:37:09 +03:00
|
|
|
environment.systemPackages = [ pkgs.qt5.qtwayland ];
|
|
|
|
|
2020-11-21 23:54:07 +03:00
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
gtkUsePortal = true;
|
|
|
|
extraPortals = with pkgs; [
|
|
|
|
xdg-desktop-portal
|
|
|
|
xdg-desktop-portal-gtk
|
2021-05-14 02:58:36 +03:00
|
|
|
# xdg-desktop-portal-wlr
|
2020-11-21 23:54:07 +03:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
adb.enable = true;
|
|
|
|
steam.enable = true;
|
|
|
|
java = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.jre8;
|
|
|
|
};
|
|
|
|
};
|
2021-01-17 17:25:54 +03:00
|
|
|
|
2021-01-26 21:09:02 +03:00
|
|
|
security.pam.services.patriot = {
|
|
|
|
enableGnomeKeyring = true;
|
|
|
|
enableKwallet = false;
|
|
|
|
};
|
2021-01-17 18:34:34 +03:00
|
|
|
services = {
|
2021-05-14 01:35:10 +03:00
|
|
|
gnome = {
|
2021-01-17 18:34:34 +03:00
|
|
|
gnome-keyring.enable = true;
|
|
|
|
};
|
2021-03-18 17:12:44 +03:00
|
|
|
xserver = {
|
2021-01-17 17:25:54 +03:00
|
|
|
enable = true;
|
2021-01-26 21:09:02 +03:00
|
|
|
desktopManager = {
|
2021-05-28 18:40:25 +03:00
|
|
|
plasma5.enable = false;
|
2021-05-28 19:04:54 +03:00
|
|
|
gnome.enable = false;
|
2021-01-26 21:09:02 +03:00
|
|
|
xterm.enable = false;
|
|
|
|
};
|
|
|
|
displayManager = {
|
|
|
|
autoLogin = {
|
2021-03-26 21:03:40 +03:00
|
|
|
enable = false;
|
2021-01-26 21:09:02 +03:00
|
|
|
user = "patriot";
|
|
|
|
};
|
|
|
|
lightdm.enable = false;
|
|
|
|
gdm = {
|
2021-05-28 19:04:54 +03:00
|
|
|
enable = false;
|
2021-01-26 21:09:02 +03:00
|
|
|
wayland = true;
|
|
|
|
};
|
2021-03-26 21:03:40 +03:00
|
|
|
sddm.enable = false;
|
2021-05-28 19:04:54 +03:00
|
|
|
startx.enable = true;
|
2021-01-26 21:09:02 +03:00
|
|
|
};
|
2021-03-18 17:12:44 +03:00
|
|
|
};
|
2021-01-26 21:09:02 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
systemd.user.services.gnome-session-restart-dbus.serviceConfig = {
|
|
|
|
Slice = "-.slice";
|
|
|
|
};
|
|
|
|
systemd = {
|
|
|
|
targets = {
|
|
|
|
network-online.enable = false;
|
|
|
|
};
|
|
|
|
services = {
|
|
|
|
systemd-networkd-wait-online.enable = false;
|
|
|
|
NetworkManager-wait-online.enable = false;
|
2021-01-17 17:25:54 +03:00
|
|
|
};
|
|
|
|
};
|
2021-05-03 07:48:31 +03:00
|
|
|
|
|
|
|
home-manager.users.patriot =
|
2021-05-03 09:19:54 +03:00
|
|
|
{ config, pkgs, suites, ... }:
|
2021-05-03 07:48:31 +03:00
|
|
|
let
|
2021-05-03 09:27:11 +03:00
|
|
|
personal = import ../../personal.nix;
|
|
|
|
name = personal.name;
|
|
|
|
email = personal.emails.primary;
|
2021-05-03 07:48:31 +03:00
|
|
|
|
|
|
|
font = "Iosevka Term";
|
|
|
|
fontSize = 10;
|
|
|
|
fontComb = "${font} ${toString fontSize}";
|
|
|
|
fontPackage = pkgs.iosevka;
|
|
|
|
|
|
|
|
kideSrc = fetchGit {
|
|
|
|
url = "https://gitlab.com/yusdacra/kide.git";
|
|
|
|
rev = "778d68df0cfcb96d6113bfe6a59e5dfc71ee7d82";
|
|
|
|
submodules = true;
|
|
|
|
};
|
|
|
|
kideFiles =
|
|
|
|
mapAttrs' (n: _: nameValuePair "kak/${n}" { source = "${kideSrc}/${n}"; })
|
|
|
|
(readDir kideSrc);
|
|
|
|
kideDeps = with pkgs; [
|
|
|
|
fzf
|
|
|
|
bat
|
|
|
|
ripgrep
|
|
|
|
universal-ctags
|
|
|
|
kak-lsp
|
|
|
|
wl-clipboard
|
|
|
|
xclip
|
|
|
|
shellcheck
|
|
|
|
perl
|
|
|
|
socat
|
|
|
|
gdb
|
|
|
|
kcr
|
|
|
|
jq
|
|
|
|
file
|
|
|
|
];
|
|
|
|
|
|
|
|
chromiumWayland =
|
|
|
|
let
|
|
|
|
flags = [
|
2021-05-28 02:08:33 +03:00
|
|
|
"--enable-vulkan"
|
2021-05-28 18:30:15 +03:00
|
|
|
"--flag-switches-begin"
|
|
|
|
"--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,IgnoreGPUBlocklist"
|
|
|
|
"--flag-switches-end"
|
|
|
|
"--ozone-platform=wayland"
|
2021-05-28 02:08:33 +03:00
|
|
|
"--enable-webrtc-pipewire-capturer"
|
2021-05-03 07:48:31 +03:00
|
|
|
"--ignore-gpu-blocklist"
|
|
|
|
"--enable-gpu-rasterization"
|
|
|
|
"--enable-zero-copy"
|
2021-05-28 18:30:15 +03:00
|
|
|
"--disable-gpu-driver-bug-workarounds"
|
2021-05-28 02:08:33 +03:00
|
|
|
# "--enable-features=VaapiVideoDecoder"
|
|
|
|
# "--use-gl=egl"
|
2021-05-03 07:48:31 +03:00
|
|
|
];
|
|
|
|
in
|
|
|
|
pkgs.writeScriptBin "chromium-wayland" ''
|
|
|
|
#!${pkgs.stdenv.shell}
|
|
|
|
chromium ${lib.concatStringsSep " " flags}
|
|
|
|
'';
|
2021-05-30 17:31:27 +03:00
|
|
|
vscodiumWayland =
|
|
|
|
let
|
|
|
|
flags = [
|
|
|
|
"--enable-vulkan"
|
|
|
|
"--flag-switches-begin"
|
|
|
|
"--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer,IgnoreGPUBlocklist"
|
|
|
|
"--flag-switches-end"
|
|
|
|
"--ozone-platform=wayland"
|
|
|
|
"--enable-webrtc-pipewire-capturer"
|
|
|
|
"--ignore-gpu-blocklist"
|
|
|
|
"--enable-gpu-rasterization"
|
|
|
|
"--enable-zero-copy"
|
|
|
|
"--disable-gpu-driver-bug-workarounds"
|
|
|
|
# "--enable-features=VaapiVideoDecoder"
|
|
|
|
# "--use-gl=egl"
|
|
|
|
];
|
|
|
|
in
|
|
|
|
pkgs.writeScriptBin "vscodium-wayland" ''
|
|
|
|
#!${pkgs.stdenv.shell}
|
|
|
|
codium ${lib.concatStringsSep " " flags}
|
|
|
|
'';
|
|
|
|
vscodiumWaylandPkg =
|
|
|
|
let
|
|
|
|
name = "vscodium-wayland";
|
|
|
|
desktop = pkgs.makeDesktopItem {
|
|
|
|
inherit name;
|
|
|
|
exec = name;
|
|
|
|
icon = "vscodium";
|
|
|
|
desktopName = "VSCodium Wayland";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
|
|
name = name;
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
ln -s ${vscodiumWayland}/bin $out/bin
|
|
|
|
ln -s ${desktop}/share $out/share
|
|
|
|
'';
|
|
|
|
};
|
2021-05-28 18:30:15 +03:00
|
|
|
chromiumWaylandPkg =
|
|
|
|
let
|
|
|
|
name = "chromium-wayland";
|
|
|
|
desktop = pkgs.makeDesktopItem {
|
|
|
|
inherit name;
|
|
|
|
exec = name;
|
|
|
|
icon = "chromium-browser";
|
|
|
|
desktopName = "Chromium Wayland";
|
|
|
|
genericName = "Web Browser";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
|
|
name = name;
|
2021-05-03 07:48:31 +03:00
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
installPhase = ''
|
2021-05-28 18:30:15 +03:00
|
|
|
mkdir $out
|
|
|
|
ln -s ${chromiumWayland}/bin $out/bin
|
|
|
|
ln -s ${desktop}/share $out/share
|
2021-05-03 07:48:31 +03:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
colorSchemeLight = {
|
|
|
|
primary = {
|
|
|
|
normal = {
|
|
|
|
background = "fbf3db";
|
|
|
|
foreground = "53676d";
|
|
|
|
};
|
|
|
|
bright = {
|
|
|
|
background = "d5cdb6";
|
|
|
|
foreground = "3a4d53";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
normal = {
|
|
|
|
black = "ece3cc";
|
|
|
|
gray = "5b5b5b";
|
|
|
|
red = "d2212d";
|
|
|
|
green = "489100";
|
|
|
|
yellow = "ad8900";
|
|
|
|
blue = "0072d4";
|
|
|
|
magenta = "ca4898";
|
|
|
|
cyan = "009c8f";
|
|
|
|
white = "909995";
|
|
|
|
};
|
|
|
|
bright = {
|
|
|
|
black = "d5cdb6";
|
|
|
|
gray = "7b7b7b";
|
|
|
|
red = "cc1729";
|
|
|
|
green = "428b00";
|
|
|
|
yellow = "a78300";
|
|
|
|
blue = "006dce";
|
|
|
|
magenta = "c44392";
|
|
|
|
cyan = "00978a";
|
|
|
|
white = "3a4d53";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
colorSchemeDark =
|
|
|
|
let
|
|
|
|
normal = {
|
|
|
|
black = "252525";
|
|
|
|
gray = "5b5b5b";
|
|
|
|
red = "ed4a46";
|
|
|
|
green = "70b433";
|
|
|
|
yellow = "dbb32d";
|
|
|
|
blue = "368aeb";
|
|
|
|
magenta = "eb6eb7";
|
|
|
|
cyan = "3fc5b7";
|
|
|
|
white = "777777";
|
|
|
|
};
|
|
|
|
bright = {
|
|
|
|
black = "3b3b3b";
|
|
|
|
gray = "7b7b7b";
|
|
|
|
red = "ff5e56";
|
|
|
|
green = "83c746";
|
|
|
|
yellow = "efc541";
|
|
|
|
blue = "4f9cfe";
|
|
|
|
magenta = "ff81ca";
|
|
|
|
cyan = "56d8c9";
|
|
|
|
white = "dedede";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit normal bright;
|
|
|
|
|
|
|
|
primary = {
|
|
|
|
normal = {
|
|
|
|
background = "181818";
|
|
|
|
foreground = "b9b9b9";
|
|
|
|
};
|
|
|
|
bright = {
|
|
|
|
background = bright.black;
|
|
|
|
foreground = bright.white;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
colorScheme =
|
|
|
|
# if builtins.pathExists ./light then colorSchemeLight else colorSchemeDark;
|
|
|
|
colorSchemeDark;
|
|
|
|
|
|
|
|
bgColor = colorScheme.primary.normal.background;
|
|
|
|
fgColor = colorScheme.primary.bright.foreground;
|
|
|
|
acColor = colorScheme.normal.yellow;
|
|
|
|
acColor2 = colorScheme.normal.magenta;
|
|
|
|
|
|
|
|
alacrittyColors = {
|
|
|
|
primary = {
|
|
|
|
background = "0x${bgColor}";
|
|
|
|
foreground = "0x${fgColor}";
|
|
|
|
};
|
|
|
|
normal = lib.mapAttrs (_: v: "0x${v}") colorScheme.normal;
|
|
|
|
bright = lib.mapAttrs (_: v: "0x${v}") colorScheme.bright;
|
|
|
|
};
|
|
|
|
|
|
|
|
# sway attrs reused
|
|
|
|
focusedWorkspace = {
|
|
|
|
background = "#${bgColor}";
|
|
|
|
border = "#${acColor}";
|
|
|
|
text = "#${acColor}";
|
|
|
|
};
|
|
|
|
activeWorkspace = {
|
|
|
|
background = "#${bgColor}";
|
|
|
|
border = "#${colorScheme.primary.bright.background}";
|
|
|
|
text = "#${fgColor}";
|
|
|
|
};
|
|
|
|
inactiveWorkspace = {
|
|
|
|
background = "#${bgColor}";
|
|
|
|
border = "#${bgColor}";
|
|
|
|
text = "#${fgColor}";
|
|
|
|
};
|
|
|
|
urgentWorkspace = {
|
|
|
|
background = "#${bgColor}";
|
|
|
|
border = "#${acColor2}";
|
|
|
|
text = "#${acColor2}";
|
|
|
|
};
|
|
|
|
addIndSway = x: {
|
|
|
|
background = x.background;
|
|
|
|
border = x.border;
|
|
|
|
childBorder = x.border;
|
|
|
|
text = x.text;
|
|
|
|
indicator = "#111111"; # don't care
|
|
|
|
};
|
|
|
|
fonts = [ fontComb ];
|
|
|
|
|
|
|
|
extraEnv = ''
|
|
|
|
# export SDL_VIDEODRIVER=wayland
|
|
|
|
# needs qt5.qtwayland in systemPackages
|
2021-05-28 18:40:25 +03:00
|
|
|
export QT_QPA_PLATFORM=wayland
|
|
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
|
2021-05-03 07:48:31 +03:00
|
|
|
# Fix for some Java AWT applications (e.g. Android Studio),
|
|
|
|
# use this if they aren't displayed properly:
|
2021-05-28 19:04:54 +03:00
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
|
|
export QT_QPA_PLATFORMTHEME=qt5ct
|
|
|
|
export QT_PLATFORM_PLUGIN=qt5ct
|
2021-05-03 07:48:31 +03:00
|
|
|
'';
|
|
|
|
in
|
|
|
|
{
|
2021-05-03 09:19:54 +03:00
|
|
|
imports = suites.base;
|
2021-05-03 07:48:31 +03:00
|
|
|
|
|
|
|
# needs to be fixed to use nix profile???
|
|
|
|
/*gtk = {
|
|
|
|
enable = false;
|
|
|
|
font = {
|
|
|
|
package = pkgs.dejavu_fonts;
|
|
|
|
name = "DejaVu Sans 12";
|
|
|
|
};
|
|
|
|
iconTheme = {
|
|
|
|
package = pkgs.papirus-icon-theme;
|
|
|
|
name = "Papirus Dark";
|
|
|
|
};
|
|
|
|
theme = {
|
|
|
|
package = pkgs.numix-gtk-theme;
|
|
|
|
name = "Numix Dark";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
qt = {
|
|
|
|
enable = false;
|
|
|
|
style = {
|
|
|
|
package = pkgs.adwaita-qt;
|
|
|
|
name = "adwaita-dark";
|
|
|
|
};
|
|
|
|
};*/
|
|
|
|
|
|
|
|
fonts.fontconfig.enable = true;
|
|
|
|
home = {
|
|
|
|
homeDirectory = nixosConfig.users.users.patriot.home;
|
|
|
|
packages = with pkgs;
|
|
|
|
[
|
|
|
|
# Font stuff
|
|
|
|
fontPackage
|
|
|
|
noto-fonts-cjk
|
|
|
|
noto-fonts-emoji-blob-bin
|
|
|
|
font-awesome
|
|
|
|
(nerdfonts.override { fonts = [ "Iosevka" ]; })
|
|
|
|
# Programs
|
2021-05-25 02:52:49 +03:00
|
|
|
discord-canary-system
|
2021-05-25 18:04:53 +03:00
|
|
|
# lightcord
|
|
|
|
# discord-canary
|
2021-05-03 07:48:31 +03:00
|
|
|
audacity
|
|
|
|
krita
|
|
|
|
gimp
|
|
|
|
kdenlive
|
|
|
|
gnome3.seahorse
|
|
|
|
gnome3.gnome-boxes
|
|
|
|
wine-staging
|
|
|
|
cachix
|
|
|
|
chromiumWaylandPkg
|
2021-05-30 17:31:27 +03:00
|
|
|
vscodiumWaylandPkg
|
2021-05-03 07:48:31 +03:00
|
|
|
appimage-run
|
|
|
|
bitwarden
|
|
|
|
pfetch
|
|
|
|
neofetch
|
|
|
|
gnupg
|
|
|
|
imv
|
|
|
|
mpv
|
|
|
|
youtube-dl
|
|
|
|
ffmpeg
|
|
|
|
mupdf
|
|
|
|
transmission-qt
|
|
|
|
lutris
|
|
|
|
xdg_utils
|
|
|
|
tagref
|
|
|
|
libreoffice-fresh
|
|
|
|
mako
|
|
|
|
hydrus
|
|
|
|
musikcube
|
|
|
|
qt5ct
|
|
|
|
phantomstyle
|
|
|
|
papirus-icon-theme
|
|
|
|
pcmanfm-qt
|
|
|
|
] ++ kideDeps;
|
|
|
|
};
|
|
|
|
|
|
|
|
wayland.windowManager = {
|
|
|
|
sway = {
|
2021-05-28 19:04:54 +03:00
|
|
|
enable = true;
|
2021-05-03 07:48:31 +03:00
|
|
|
extraSessionCommands = extraEnv;
|
|
|
|
wrapperFeatures.gtk = true;
|
|
|
|
config = {
|
2021-05-14 01:35:10 +03:00
|
|
|
fonts = {
|
|
|
|
names = [ font ];
|
|
|
|
size = fontSize + 0.0;
|
|
|
|
};
|
2021-05-03 07:48:31 +03:00
|
|
|
bars = [{
|
|
|
|
command = "${pkgBin "waybar"}";
|
|
|
|
}];
|
|
|
|
colors = {
|
|
|
|
background = "#${bgColor}";
|
|
|
|
focused = addIndSway focusedWorkspace;
|
|
|
|
focusedInactive = addIndSway inactiveWorkspace;
|
|
|
|
unfocused = addIndSway activeWorkspace;
|
|
|
|
urgent = addIndSway urgentWorkspace;
|
|
|
|
};
|
|
|
|
gaps.smartBorders = "on";
|
|
|
|
menu = "${pkgBin "rofi"} -show drun | ${pkgs.sway}/bin/swaymsg --";
|
|
|
|
modifier = "Mod4";
|
|
|
|
terminal = pkgBin "alacritty";
|
|
|
|
keybindings =
|
|
|
|
let
|
|
|
|
mod = config.wayland.windowManager.sway.config.modifier;
|
|
|
|
cat = pkgs.coreutils + "/bin/cat";
|
|
|
|
grim = pkgBin "grim";
|
|
|
|
slurp = pkgBin "slurp";
|
|
|
|
pactl = pkgs.pulseaudio + "/bin/pactl";
|
|
|
|
playerctl = pkgBin "playerctl";
|
|
|
|
wf-recorder = pkgBin "wf-recorder";
|
|
|
|
wl-copy = pkgs.wl-clipboard + "/bin/wl-copy";
|
|
|
|
wl-paste = pkgs.wl-clipboard + "/bin/wl-paste";
|
|
|
|
shotFile = config.home.homeDirectory
|
|
|
|
+ "/shots/shot_$(date '+%Y_%m_%d_%H_%M')";
|
|
|
|
in
|
|
|
|
lib.mkOptionDefault {
|
|
|
|
"${mod}+q" = "kill";
|
|
|
|
"${mod}+Shift+e" = "exit";
|
|
|
|
"${mod}+Shift+r" = "reload";
|
|
|
|
# Screenshot and copy it to clipboard
|
|
|
|
"Mod1+s" = ''
|
|
|
|
exec export SFILE="${shotFile}.png" && ${grim} "$SFILE" && ${cat} "$SFILE" | ${wl-copy} -t image/png
|
|
|
|
'';
|
|
|
|
# Save selected area as a picture and copy it to clipboard
|
|
|
|
"Mod1+Shift+s" = ''
|
|
|
|
exec export SFILE="${shotFile}.png" && ${grim} -g "$(${slurp})" "$SFILE" && ${cat} "$SFILE" | ${wl-copy} -t image/png
|
|
|
|
'';
|
|
|
|
# Record screen
|
|
|
|
"Mod1+r" = ''exec ${wf-recorder} -f "${shotFile}.mp4"'';
|
|
|
|
# Record an area
|
|
|
|
"Mod1+Shift+r" =
|
|
|
|
''exec ${wf-recorder} -g "$(${slurp})" -f "${shotFile}.mp4"'';
|
|
|
|
# Stop recording
|
|
|
|
"Mod1+c" = "exec pkill -INT wf-recorder";
|
|
|
|
"XF86AudioRaiseVolume" = "exec ${pactl} set-sink-volume 0 +5%";
|
|
|
|
"XF86AudioLowerVolume" = "exec ${pactl} set-sink-volume 0 -5%";
|
|
|
|
"XF86AudioMute" = "exec ${pactl} set-sink-mute 0 toggle";
|
|
|
|
"XF86AudioPlay" = "exec ${playerctl} play-pause";
|
|
|
|
"XF86AudioPrev" = "exec ${playerctl} previous";
|
|
|
|
"XF86AudioNext" = "exec ${playerctl} next";
|
|
|
|
"XF86AudioStop" = "exec ${playerctl} stop";
|
|
|
|
};
|
|
|
|
input = {
|
|
|
|
"*" = {
|
|
|
|
xkb_layout = nixosConfig.services.xserver.layout;
|
|
|
|
accel_profile = "flat";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
output = {
|
|
|
|
"*" = {
|
|
|
|
bg = config.home.homeDirectory + "/wallpaper.png" + " fill";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
alacritty = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
2021-05-28 19:04:54 +03:00
|
|
|
shell = {
|
|
|
|
program = "${pkgs.tmux}/bin/tmux";
|
|
|
|
args = [ "attach" ];
|
|
|
|
};
|
2021-05-03 07:48:31 +03:00
|
|
|
font = {
|
|
|
|
normal = { family = font; };
|
|
|
|
size = fontSize;
|
|
|
|
};
|
|
|
|
colors = alacrittyColors;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
tmux = {
|
2021-05-28 19:04:54 +03:00
|
|
|
enable = true;
|
2021-05-03 07:48:31 +03:00
|
|
|
newSession = true;
|
|
|
|
secureSocket = true;
|
|
|
|
baseIndex = 1;
|
|
|
|
escapeTime = 0;
|
|
|
|
keyMode = "vi";
|
|
|
|
shortcut = "a";
|
|
|
|
extraConfig = ''
|
|
|
|
set -g default-terminal "alacritty"
|
|
|
|
set -ga terminal-overrides ",alacritty:Tc"
|
|
|
|
set -g status off
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
chromium = {
|
|
|
|
enable = true;
|
|
|
|
extensions = [
|
|
|
|
"gcbommkclmclpchllfjekcdonpmejbdp" # https everywhere
|
|
|
|
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock
|
|
|
|
"nngceckbapebfimnlniiiahkandclblb" # bitwarden
|
|
|
|
"ldpochfccmkkmhdbclfhpagapcfdljkj" # decentraleyes
|
|
|
|
"annfbnbieaamhaimclajlajpijgkdblo" # dark theme
|
|
|
|
"eimadpbcbfnmbkopoojfekhnkhdbieeh" # dark reader
|
|
|
|
"hlepfoohegkhhmjieoechaddaejaokhf" # github refined
|
|
|
|
"pmcmeagblkinmogikoikkdjiligflglb" # privacy redirect
|
|
|
|
];
|
|
|
|
};
|
|
|
|
qutebrowser = {
|
2021-05-28 18:40:25 +03:00
|
|
|
enable = false;
|
2021-05-03 07:48:31 +03:00
|
|
|
settings = {
|
|
|
|
content.javascript.enabled = false;
|
|
|
|
colors.webpage.darkmode.enabled = false;
|
|
|
|
tabs = {
|
|
|
|
show = "multiple";
|
|
|
|
tabs_are_windows = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
extraConfig =
|
|
|
|
let
|
|
|
|
domains = [
|
|
|
|
"discord.com"
|
|
|
|
"github.com"
|
|
|
|
"gitlab.com"
|
|
|
|
"nixos.org"
|
|
|
|
"protonmail.com"
|
|
|
|
"bitwarden.com"
|
|
|
|
"duckduckgo.com"
|
|
|
|
"youtube.com"
|
|
|
|
"docker.com"
|
|
|
|
];
|
|
|
|
enableJsForDomain = d: ''
|
|
|
|
config.set('content.javascript.enabled', True, 'https://*.${d}')
|
|
|
|
'';
|
|
|
|
in
|
|
|
|
''
|
|
|
|
${lib.concatStrings (map enableJsForDomain domains)}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
git = {
|
|
|
|
signing = {
|
|
|
|
key = "E1C119F91F4CAE53E8445CAFBB57FCE7E35984F6";
|
|
|
|
signByDefault = true;
|
|
|
|
};
|
|
|
|
userName = name;
|
|
|
|
userEmail = email;
|
|
|
|
};
|
|
|
|
ssh = {
|
|
|
|
enable = true;
|
|
|
|
compression = true;
|
|
|
|
hashKnownHosts = true;
|
|
|
|
userKnownHostsFile = "~/.local/share/ssh/known-hosts";
|
|
|
|
# Only needed for darcs hub
|
|
|
|
# extraConfig = ''
|
|
|
|
# Host hub.darcs.net
|
|
|
|
# ControlMaster no
|
|
|
|
# ForwardAgent no
|
|
|
|
# ForwardX11 no
|
|
|
|
# Ciphers +aes256-cbc
|
|
|
|
# MACs +hmac-sha1
|
|
|
|
# '';
|
|
|
|
};
|
|
|
|
zsh = {
|
|
|
|
enable = true;
|
|
|
|
autocd = true;
|
|
|
|
enableVteIntegration = true;
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
plugins =
|
|
|
|
let
|
|
|
|
fast-syntax-highlighting =
|
|
|
|
let name = "fast-syntax-highlighting"; in
|
|
|
|
{
|
|
|
|
inherit name;
|
|
|
|
src = pkgs."zsh-${name}".out;
|
|
|
|
};
|
|
|
|
per-directory-history = {
|
|
|
|
name = "per-directory-history";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "jimhester";
|
|
|
|
repo = "per-directory-history";
|
|
|
|
rev = "d2e291dd6434e340d9be0e15e1f5b94f32771c06";
|
|
|
|
hash = "sha256-VHRgrVCqzILqOes8VXGjSgLek38BFs9eijmp0JHtD5Q=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
[ fast-syntax-highlighting per-directory-history ];
|
|
|
|
# xdg compliant
|
|
|
|
dotDir = ".config/zsh";
|
|
|
|
history.path = ".local/share/zsh/history";
|
|
|
|
envExtra = extraEnv;
|
2021-05-28 19:04:54 +03:00
|
|
|
loginExtra =
|
|
|
|
''
|
|
|
|
if [ "$(${pkgs.coreutils}/bin/tty)" = "/dev/tty1" ]; then
|
|
|
|
exec sway
|
|
|
|
fi
|
|
|
|
'';
|
2021-05-03 07:48:31 +03:00
|
|
|
initExtra = ''
|
|
|
|
export TERM=alacritty
|
|
|
|
|
|
|
|
function tomp4 () {
|
|
|
|
${pkgs.ffmpeg}/bin/ffmpeg -i $1 -c:v libx264 -preset slow -crf 30 -c:a aac -b:a 128k "$1.mp4"
|
|
|
|
}
|
|
|
|
|
|
|
|
function topng () {
|
|
|
|
${pkgs.ffmpeg}/bin/ffmpeg -i $1 "$1.png"
|
|
|
|
}
|
|
|
|
|
|
|
|
bindkey "$terminfo[kRIT5]" forward-word
|
|
|
|
bindkey "$terminfo[kLFT5]" backward-word
|
|
|
|
zstyle ':completion:*' menu select
|
|
|
|
|
|
|
|
eval "$(zoxide init zsh)"
|
|
|
|
'';
|
|
|
|
shellAliases = nixosConfig.environment.shellAliases // {
|
|
|
|
rember = ''
|
|
|
|
${pkgs.kakoune-unwrapped}/bin/kak -e "try %(gtd-jump-today)" "${config.home.homeDirectory}/rember/stuff$(date '+_%m_%Y').gtd"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
fzf.enable = true;
|
|
|
|
rofi =
|
|
|
|
let
|
|
|
|
bgc = "#${bgColor}";
|
|
|
|
fgc = "#${fgColor}";
|
|
|
|
acc = "#${acColor}";
|
|
|
|
in
|
|
|
|
{
|
2021-05-28 19:04:54 +03:00
|
|
|
enable = true;
|
2021-05-03 07:48:31 +03:00
|
|
|
colors = {
|
|
|
|
window = {
|
|
|
|
background = bgc;
|
|
|
|
border = bgc;
|
|
|
|
separator = bgc;
|
|
|
|
};
|
|
|
|
rows = {
|
|
|
|
normal = {
|
|
|
|
background = bgc;
|
|
|
|
foreground = fgc;
|
|
|
|
backgroundAlt = bgc;
|
|
|
|
highlight = {
|
|
|
|
background = bgc;
|
|
|
|
foreground = acc;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
font = fontComb;
|
|
|
|
separator = "none";
|
|
|
|
terminal = pkgBin "alacritty";
|
|
|
|
};
|
|
|
|
waybar =
|
|
|
|
let
|
|
|
|
swayEnabled = config.wayland.windowManager.sway.enable;
|
|
|
|
in
|
|
|
|
{
|
2021-05-28 19:04:54 +03:00
|
|
|
enable = swayEnabled || config.wayland.windowManager.hikari.enable;
|
2021-05-03 07:48:31 +03:00
|
|
|
settings = [{
|
|
|
|
layer = "top";
|
|
|
|
position = "top";
|
|
|
|
modules-left = if swayEnabled then [ "sway/workspaces" ] else [ ];
|
|
|
|
modules-center = if swayEnabled then [ "sway/window" ] else [ ];
|
|
|
|
modules-right =
|
|
|
|
[ "pulseaudio" "cpu" "memory" "temperature" "clock" "tray" ];
|
|
|
|
modules = {
|
|
|
|
"tray" = { spacing = 8; };
|
|
|
|
"cpu" = { format = "/cpu {usage}/"; };
|
|
|
|
"memory" = { format = "/mem {}/"; };
|
|
|
|
"temperature" = {
|
|
|
|
hwmon-path = "/sys/class/hwmon/hwmon1/temp2_input";
|
|
|
|
format = "/tmp {temperatureC}C/";
|
|
|
|
};
|
|
|
|
"pulseaudio" = {
|
|
|
|
format = "/vol {volume}/ {format_source}";
|
|
|
|
format-bluetooth = "/volb {volume}/ {format_source}";
|
|
|
|
format-bluetooth-muted = "/volb/ {format_source}";
|
|
|
|
format-muted = "/vol/ {format_source}";
|
|
|
|
format-source = "/mic {volume}/";
|
|
|
|
format-source-muted = "/mic/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
style =
|
|
|
|
let
|
|
|
|
makeBorder = color: "border-bottom: 3px solid #${color};";
|
|
|
|
makeInfo = color: ''
|
|
|
|
color: #${color};
|
|
|
|
${makeBorder color}
|
|
|
|
'';
|
|
|
|
|
|
|
|
clockColor = colorScheme.bright.magenta;
|
|
|
|
cpuColor = colorScheme.bright.green;
|
|
|
|
memColor = colorScheme.bright.blue;
|
|
|
|
pulseColor = {
|
|
|
|
normal = colorScheme.bright.cyan;
|
|
|
|
muted = colorScheme.bright.gray;
|
|
|
|
};
|
|
|
|
tmpColor = {
|
|
|
|
normal = colorScheme.bright.yellow;
|
|
|
|
critical = colorScheme.bright.red;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
''
|
|
|
|
* {
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
/* `otf-font-awesome` is required to be installed for icons */
|
|
|
|
font-family: ${font};
|
|
|
|
font-size: 13px;
|
|
|
|
min-height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
window#waybar {
|
|
|
|
background-color: #${bgColor};
|
|
|
|
/* border-bottom: 0px solid rgba(100, 114, 125, 0.5); */
|
|
|
|
color: #${fgColor};
|
|
|
|
transition-property: background-color;
|
|
|
|
transition-duration: .5s;
|
|
|
|
}
|
|
|
|
|
|
|
|
#workspaces button {
|
|
|
|
padding: 0 5px;
|
|
|
|
background-color: transparent;
|
|
|
|
color: #${fgColor};
|
|
|
|
border-bottom: 3px solid transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
|
|
|
#workspaces button:hover {
|
|
|
|
background: rgba(0, 0, 0, 0.2);
|
|
|
|
box-shadow: inherit;
|
|
|
|
border-bottom: 3px solid #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
#workspaces button.focused {
|
|
|
|
border-bottom: 3px solid #${acColor};
|
|
|
|
}
|
|
|
|
|
|
|
|
#workspaces button.urgent {
|
|
|
|
background-color: #${acColor};
|
|
|
|
color: #${bgColor};
|
|
|
|
}
|
|
|
|
|
|
|
|
#mode {
|
|
|
|
background-color: #64727D;
|
|
|
|
border-bottom: 3px solid #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
#clock,
|
|
|
|
#battery,
|
|
|
|
#cpu,
|
|
|
|
#memory,
|
|
|
|
#temperature,
|
|
|
|
#backlight,
|
|
|
|
#network,
|
|
|
|
#pulseaudio,
|
|
|
|
#custom-media,
|
|
|
|
#tray,
|
|
|
|
#mode,
|
|
|
|
#idle_inhibitor,
|
|
|
|
#mpd {
|
|
|
|
padding: 0 10px;
|
|
|
|
margin: 0 4px;
|
|
|
|
background-color: transparent;
|
|
|
|
${makeInfo fgColor}
|
|
|
|
}
|
|
|
|
|
|
|
|
label:focus {
|
|
|
|
color: #000000;
|
|
|
|
}
|
|
|
|
|
|
|
|
#clock {
|
|
|
|
${makeInfo clockColor}
|
|
|
|
}
|
|
|
|
|
|
|
|
#cpu {
|
|
|
|
${makeInfo cpuColor}
|
|
|
|
}
|
|
|
|
|
|
|
|
#memory {
|
|
|
|
${makeInfo memColor}
|
|
|
|
}
|
|
|
|
|
|
|
|
#pulseaudio {
|
|
|
|
${makeInfo pulseColor.normal}
|
|
|
|
}
|
|
|
|
|
|
|
|
#pulseaudio.muted {
|
|
|
|
${makeInfo pulseColor.muted}
|
|
|
|
}
|
|
|
|
|
|
|
|
#temperature {
|
|
|
|
${makeInfo tmpColor.normal}
|
|
|
|
}
|
|
|
|
|
|
|
|
#temperature.critical {
|
|
|
|
${makeInfo tmpColor.critical}
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
vscode = {
|
2021-05-12 13:47:00 +03:00
|
|
|
enable = true;
|
2021-05-03 07:48:31 +03:00
|
|
|
package = pkgs.vscodium;
|
|
|
|
extensions =
|
|
|
|
let
|
|
|
|
mkExt = n: v: p: s: { name = n; version = v; publisher = p; sha256 = s; };
|
|
|
|
in
|
|
|
|
(pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
|
|
|
# Rust
|
2021-06-04 16:33:17 +03:00
|
|
|
(mkExt "rust-analyzer" "0.2.612" "matklad" "sha256-XxmuI9JQlUq8fn+5ajNCOWIQXZy6wTEWipb++6GlByk=")
|
|
|
|
(mkExt "even-better-toml" "0.12.2" "tamasfe" "sha256-etPWeshSDbw9u92Ecl1gGYZ7ic9Nfu4+sRoS8WbX4e8=")
|
2021-05-12 13:47:00 +03:00
|
|
|
(mkExt "crates" "0.5.9" "serayuzgur" "sha256-YHIbnl2R7lqwJHi8qUQImClx9MWm+5Pc12vYw7e/RlA=")
|
2021-05-03 07:48:31 +03:00
|
|
|
# Nix
|
2021-05-12 13:47:00 +03:00
|
|
|
(mkExt "nix-env-selector" "1.0.7" "arrterian" "sha256-DnaIXJ27bcpOrIp1hm7DcrlIzGSjo4RTJ9fD72ukKlc=")
|
2021-05-03 07:48:31 +03:00
|
|
|
# Go
|
2021-06-04 16:33:17 +03:00
|
|
|
(mkExt "Go" "0.25.1" "golang" "sha256-ZDUWN9lzDnR77W7xcMFQaaFl/6Lf/x1jgaBkwZPqGGw=")
|
2021-05-03 07:48:31 +03:00
|
|
|
# Flutter and dart
|
2021-05-12 13:47:00 +03:00
|
|
|
(mkExt "flutter" "3.22.0" "Dart-Code" "sha256-woygN6hOWlP2UayqwDhJh9KcZk1GzH7mDF5IueDRxs4=")
|
|
|
|
(mkExt "dart-code" "3.22.0" "Dart-Code" "sha256-1nTewVmlrxbXdRR1EPts46u24LHdnP5BblFsMaGlNYg=")
|
2021-05-03 07:48:31 +03:00
|
|
|
# protobuf
|
2021-05-12 13:47:00 +03:00
|
|
|
(mkExt "vscode-proto3" "0.5.4" "zxh404" "sha256-S89qRRlfiTsJ+fJuwdNkZywe6mei48KxIEWbGWChriE=")
|
2021-05-03 07:48:31 +03:00
|
|
|
# git
|
2021-05-12 13:47:00 +03:00
|
|
|
(mkExt "gitlens" "11.4.1" "eamodio" "sha256-OjMozzOjwZDAexVfKlu3XTDxJPf8acx7LqlAEMRmE78=")
|
|
|
|
(mkExt "vscode-commitizen" "0.14.1" "KnisterPeter" "sha256-yw8XKGL7Ul9wV+C0yL1LFJCE3+E8u/sR9s3TjkGJPZM=")
|
2021-05-03 07:48:31 +03:00
|
|
|
# Customization
|
|
|
|
# (mkExt "dance" "0.3.2" "gregoire" "sha256-+g8EXeCkPOPvZ60JoXkGTeSXYWrXmKrcbUaEfDppdgA=")
|
2021-05-12 13:47:00 +03:00
|
|
|
(mkExt "material-icon-theme" "4.6.0" "PKief" "sha256-i+3lrw3mDqK2vTMDhJYTACW5JleA+lN1XAC2imgQLUo=")
|
|
|
|
(mkExt "github-vscode-theme" "4.1.1" "GitHub" "sha256-yLySHOx6pe7w2cyi95pQlKkn/o4VMCTkrTYHu8ASn5M=")
|
2021-05-03 07:48:31 +03:00
|
|
|
(mkExt "koka" "0.0.1" "maelvalais" "sha256-ty8Mql19HgUWForggeZuHQpzTbmmB/eBFHqof5ZMKr0=")
|
|
|
|
]) ++ (with pkgs.vscode-extensions; [ a5huynh.vscode-ron vadimcn.vscode-lldb jnoortheen.nix-ide ]);
|
|
|
|
userSettings = {
|
|
|
|
"workbench.iconTheme" = "material-icon-theme";
|
|
|
|
"workbench.colorTheme" = "GitHub Dark";
|
|
|
|
"rust-analyzer.cargo.allFeatures" = true;
|
|
|
|
"rust-analyzer.cargo.loadOutDirsFromCheck" = true;
|
|
|
|
"rust-analyzer.procMacro.enable" = true;
|
|
|
|
"editor.fontFamily" = "'${font}'";
|
|
|
|
"debug.console.fontFamily" = "${font}";
|
|
|
|
"debug.console.fontSize" = 12;
|
|
|
|
"terminal.integrated.fontSize" = 12;
|
|
|
|
"go.useLanguageServer" = true;
|
|
|
|
"rust-analyzer.checkOnSave.command" = "clippy";
|
2021-05-17 16:29:13 +03:00
|
|
|
"nix.enableLanguageServer" = true;
|
|
|
|
"nix.serverPath" = pkgBin "rnix-lsp";
|
2021-05-03 07:48:31 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
gpg-agent =
|
|
|
|
let
|
|
|
|
defaultCacheTtl = 3600 * 6;
|
|
|
|
maxCacheTtl = 3600 * 24;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit defaultCacheTtl maxCacheTtl;
|
|
|
|
|
|
|
|
enable = true;
|
|
|
|
enableSshSupport = true;
|
|
|
|
sshKeys = [ "8369D9CA26C3EAAAB8302A88CEE6FD14B58AA965" ];
|
|
|
|
defaultCacheTtlSsh = defaultCacheTtl;
|
|
|
|
maxCacheTtlSsh = maxCacheTtl;
|
|
|
|
grabKeyboardAndMouse = false;
|
|
|
|
pinentryFlavor = "qt";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xdg = {
|
|
|
|
enable = true;
|
|
|
|
configFile = {
|
|
|
|
"kak/user/kakrc".text = ''
|
|
|
|
source "%val{config}/user/color/colorscheme.kak"
|
|
|
|
'';
|
|
|
|
"kak/user/color/colorscheme.kak".text = ''
|
|
|
|
evaluate-commands %sh{
|
|
|
|
fg="rgb:${colorScheme.primary.normal.foreground}"
|
|
|
|
bg="rgb:${colorScheme.primary.normal.background}"
|
|
|
|
br_fg="rgb:${colorScheme.primary.bright.foreground}"
|
|
|
|
br_bg="rgb:${colorScheme.primary.bright.background}"
|
|
|
|
|
|
|
|
red="rgb:${colorScheme.normal.red}"
|
|
|
|
green="rgb:${colorScheme.normal.green}"
|
|
|
|
yellow="rgb:${colorScheme.normal.yellow}"
|
|
|
|
blue="rgb:${colorScheme.normal.blue}"
|
|
|
|
magenta="rgb:${colorScheme.normal.magenta}"
|
|
|
|
cyan="rgb:${colorScheme.normal.cyan}"
|
|
|
|
|
|
|
|
br_red="rgb:${colorScheme.bright.red}"
|
|
|
|
br_green="rgb:${colorScheme.bright.green}"
|
|
|
|
br_yellow="rgb:${colorScheme.bright.yellow}"
|
|
|
|
br_blue="rgb:${colorScheme.bright.blue}"
|
|
|
|
br_magenta="rgb:${colorScheme.bright.magenta}"
|
|
|
|
br_cyan="rgb:${colorScheme.bright.cyan}"
|
|
|
|
|
|
|
|
echo "
|
|
|
|
set-face global value $yellow+b
|
|
|
|
set-face global type $br_yellow
|
|
|
|
set-face global variable $magenta
|
|
|
|
set-face global module $blue
|
|
|
|
set-face global function $br_cyan
|
|
|
|
set-face global string $br_green
|
|
|
|
set-face global keyword $br_red+b
|
|
|
|
set-face global operator $br_cyan
|
|
|
|
set-face global attribute $yellow
|
|
|
|
set-face global comment $fg
|
|
|
|
set-face global meta $br_yellow
|
|
|
|
set-face global builtin $br_fg+b
|
|
|
|
|
|
|
|
set-face global title $blue+u
|
|
|
|
set-face global header $br_cyan+u
|
|
|
|
set-face global bold $br_fg+b
|
|
|
|
set-face global italic $br_fg+i
|
|
|
|
set-face global mono $br_green
|
|
|
|
set-face global block $yellow
|
|
|
|
set-face global link $blue
|
|
|
|
set-face global bullet $br_magenta
|
|
|
|
set-face global list $magenta
|
|
|
|
|
|
|
|
set-face global Default $br_fg,$bg
|
|
|
|
set-face global PrimarySelection $bg,$br_fg
|
|
|
|
set-face global SecondarySelection $br_fg,$br_bg+i
|
|
|
|
set-face global PrimaryCursor $bg,$red+b
|
|
|
|
set-face global SecondaryCursor $bg,$br_cyan+i
|
|
|
|
set-face global MatchingChar $bg,$blue
|
|
|
|
set-face global Search $br_fg,$green
|
|
|
|
set-face global CurrentWord $br_fg,$blue
|
|
|
|
|
|
|
|
set-face global MenuForeground $cyan,$br_bg+b
|
|
|
|
set-face global MenuBackground $br_fg,$bg
|
|
|
|
|
|
|
|
set-face global Information $br_yellow,$bg
|
|
|
|
set-face global Error $br_bg,$br_red
|
|
|
|
|
|
|
|
set-face global BufferPadding $bg,$bg
|
|
|
|
set-face global Whitespace $bg
|
|
|
|
set-face global StatusLine $br_fg,$bg
|
|
|
|
set-face global StatusLineInfo $yellow,$bg
|
|
|
|
|
|
|
|
set-face global LineNumbers default
|
|
|
|
set-face global LineNumberCursor default,default+r
|
|
|
|
"
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
"kak-lsp/kak-lsp.toml".text = ''
|
|
|
|
snippet_support = true
|
|
|
|
verbosity = 2
|
|
|
|
|
|
|
|
[semantic_scopes]
|
|
|
|
variable = "variable"
|
|
|
|
entity_name_function = "function"
|
|
|
|
entity_name_type = "type"
|
|
|
|
variable_other_enummember = "variable"
|
|
|
|
entity_name_namespace = "module"
|
|
|
|
|
|
|
|
[semantic_tokens]
|
|
|
|
type = "type"
|
|
|
|
variable = "variable"
|
|
|
|
namespace = "module"
|
|
|
|
function = "function"
|
|
|
|
string = "string"
|
|
|
|
keyword = "keyword"
|
|
|
|
operator = "operator"
|
|
|
|
comment = "comment"
|
|
|
|
|
|
|
|
[semantic_modifiers]
|
|
|
|
documentation = "documentation"
|
|
|
|
readonly = "default+d"
|
|
|
|
|
|
|
|
[server]
|
|
|
|
timeout = 1800
|
|
|
|
|
|
|
|
[language.rust]
|
|
|
|
filetypes = ["rust"]
|
|
|
|
roots = ["Cargo.toml"]
|
|
|
|
command = "${pkgBin "rust-analyzer"}"
|
|
|
|
|
|
|
|
[language.nix]
|
|
|
|
filetypes = ["nix"]
|
|
|
|
roots = ["flake.nix", "shell.nix", ".git"]
|
|
|
|
command = "${pkgBin "rnix-lsp"}"
|
|
|
|
'';
|
2021-05-24 23:54:27 +03:00
|
|
|
# [language.haskell]
|
|
|
|
# filetypes = ["haskell"]
|
|
|
|
# roots = ["Setup.hs", "stack.yaml", "*.cabal"]
|
|
|
|
# command = "${pkgBin "haskell-language-server"}"
|
2021-05-03 07:48:31 +03:00
|
|
|
"nixpkgs/config.nix".text = ''
|
|
|
|
{
|
|
|
|
android_sdk.accept_license = true;
|
|
|
|
allowUnfree = true;
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
} // kideFiles;
|
|
|
|
};
|
|
|
|
};
|
2020-11-21 23:54:07 +03:00
|
|
|
}
|