2023-01-24 02:24:40 +07:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
2023-01-26 03:41:45 +07:00
|
|
|
imports = [ ./terminal.nix ];
|
2023-02-03 13:07:57 +07:00
|
|
|
home.sessionVariables = {
|
|
|
|
ALSOFT_CONF = "${config.xdg.configHome}/.config/alsoft.conf";
|
|
|
|
SDL_AUDIODRIVER = "pipewire";
|
|
|
|
};
|
2023-01-25 01:33:07 +07:00
|
|
|
xdg.configFile."alsoft.conf".text = ''
|
|
|
|
[general]
|
|
|
|
hrtf = true
|
|
|
|
stereo-encoding = hrtf
|
|
|
|
drivers = pipewire,pulseaudio,jack,alsa,oss,
|
|
|
|
periods = 2
|
|
|
|
hrtf-paths = ${pkgs.openal}/share/openal/hrtf
|
|
|
|
|
|
|
|
[decoder]
|
|
|
|
hq-mode = true
|
|
|
|
|
|
|
|
[pipewire]
|
|
|
|
rt-mix = true
|
|
|
|
|
|
|
|
[pulse]
|
|
|
|
allow-moves = true
|
|
|
|
'';
|
|
|
|
|
|
|
|
xdg.userDirs.enable = true;
|
|
|
|
|
2023-01-24 02:24:40 +07:00
|
|
|
# TODO sort out this mess with colors
|
|
|
|
programs.mpv = {
|
|
|
|
enable = true;
|
|
|
|
defaultProfiles = [ "main" ];
|
|
|
|
profiles.main = {
|
|
|
|
vo = "vdpau";
|
|
|
|
alang = "jpn,en,ru";
|
|
|
|
slang = "jpn,en,ru";
|
|
|
|
vlang = "jpn,en,ru";
|
|
|
|
};
|
|
|
|
scripts = [ ];
|
|
|
|
};
|
|
|
|
i18n.inputMethod = let fcitx5-qt = pkgs.libsForQt5.fcitx5-qt; in {
|
|
|
|
enabled = "fcitx5";
|
|
|
|
fcitx5.addons = with pkgs; [ fcitx5-lua fcitx5-gtk fcitx5-mozc fcitx5-configtool fcitx5-qt ];
|
|
|
|
};
|
|
|
|
xresources.properties = {
|
|
|
|
# special colors
|
|
|
|
"*.foreground" = "#ebdadd";
|
|
|
|
"*.background" = "[75]#24101a";
|
|
|
|
"*.cursorColor" = "#ebdadd";
|
|
|
|
# black
|
|
|
|
"*.color0" = "#523b3f"; # "#3b4252";
|
|
|
|
"*.color8" = "#6b4d52"; # "#4c566a";
|
|
|
|
# red
|
|
|
|
"*.color1" = "#e66e6e";
|
|
|
|
"*.color9" = "#e66e6e";
|
|
|
|
# green
|
|
|
|
"*.color2" = "#8cbf73";
|
|
|
|
"*.color10" = "#8cbf73";
|
|
|
|
# yellow
|
|
|
|
"*.color3" = "#ebbe5f";
|
|
|
|
"*.color11" = "#ebbe5f";
|
|
|
|
# blue
|
|
|
|
"*.color4" = "#5968b3";
|
|
|
|
"*.color12" = "#5968b3";
|
|
|
|
# magenta
|
|
|
|
"*.color5" = "#a64999";
|
|
|
|
"*.color13" = "#a64999";
|
|
|
|
# cyan
|
|
|
|
"*.color6" = "#77c7c2";
|
|
|
|
"*.color14" = "#77c7c2";
|
|
|
|
# white
|
|
|
|
"*.color7" = "#f0e4e6";
|
|
|
|
"*.color15" = "#f7f0f1";
|
|
|
|
"*antialias" = true;
|
|
|
|
"*autohint" = true;
|
|
|
|
# "*fading" = 0;
|
|
|
|
# "*fadeColor" = "#6b4d52";
|
|
|
|
};
|
2023-01-26 03:41:45 +07:00
|
|
|
# home.file.".Xdefaults".source = /. + "/${config.home.homeDirectory}/.Xresources";
|
|
|
|
home.file.".Xdefaults".source = config.home.file."${config.home.homeDirectory}/.Xresources".source;
|
2023-01-24 02:24:40 +07:00
|
|
|
services.gammastep.enable = true;
|
|
|
|
fonts.fontconfig.enable = true;
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
font.name = "Noto Sans";
|
|
|
|
font.size = 10;
|
|
|
|
iconTheme = {
|
|
|
|
package = pkgs.papirus-icon-theme;
|
|
|
|
name = "Papirus-Dark";
|
|
|
|
};
|
|
|
|
theme = {
|
|
|
|
package = pkgs.breeze-gtk;
|
|
|
|
name = "Breeze-Dark";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
programs.fzf = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.user.services = {
|
|
|
|
fcitx5-daemon = {
|
|
|
|
Unit.After = "graphical-session-pre.target";
|
|
|
|
Service = {
|
|
|
|
Restart = "on-failure";
|
|
|
|
RestartSec = 3;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# i run this manually instead
|
|
|
|
#services.nextcloud-client = {
|
|
|
|
# enable = true;
|
|
|
|
# startInBackground = true;
|
|
|
|
#};
|
|
|
|
# and this too
|
|
|
|
#programs.nheko = {
|
|
|
|
# enable = true;
|
|
|
|
# settings = {
|
|
|
|
# };
|
|
|
|
#};
|
|
|
|
|
|
|
|
# some packages require a pointer theme
|
|
|
|
home.pointerCursor.gtk.enable = true;
|
|
|
|
home.pointerCursor.package = pkgs.vanilla-dmz;
|
|
|
|
home.pointerCursor.name = "Vanilla-DMZ";
|
|
|
|
programs.yt-dlp.enable = true;
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
# wayland
|
|
|
|
grim slurp
|
|
|
|
# gui compat stuff
|
|
|
|
qt5ct qgnomeplatform
|
|
|
|
# various programs i use
|
2023-02-19 19:09:38 +07:00
|
|
|
keepassxc nheko qbittorrent mumble
|
2023-02-11 23:30:19 +07:00
|
|
|
nextcloud-client gnome.zenity kdeconnect
|
2023-01-24 02:24:40 +07:00
|
|
|
# cli tools
|
|
|
|
imagemagick ffmpeg
|
|
|
|
# fonts
|
|
|
|
noto-fonts noto-fonts-cjk noto-fonts-emoji
|
|
|
|
(nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
|
|
|
|
# might check out some day (tm)
|
|
|
|
# nyxt qutebrowser
|
2023-02-19 19:09:38 +07:00
|
|
|
|
|
|
|
# for updating parts of this repo
|
|
|
|
nvfetcher config.nur.repos.rycee.mozilla-addons-to-nix
|
|
|
|
|
|
|
|
anki-bin
|
2023-01-24 02:24:40 +07:00
|
|
|
];
|
|
|
|
}
|