1
0
forked from extern/nix-config
donovanglover-nix-config/modules/desktop.nix
2023-05-10 13:51:21 -04:00

115 lines
3.0 KiB
Nix

{ config, lib, nixpkgs, home-manager, hyprland, ... }: {
imports = [ home-manager.nixosModule ];
home-manager.users.user = { pkgs, ... }: {
home.file.".icons/default/index.theme".text = ''
[icon theme]
Inherits=phinger-cursors
'';
xresources.properties = {
"Xft.hinting" = true;
"Xft.antialias" = true;
"Xft.autohint" = false;
"Xft.lcdfilter" = "lcddefault";
"Xft.hintstyle" = "hintfull";
"Xft.rgba" = "rgb";
};
xdg.configFile."xfce4/helpers.rc".text = ''
TerminalEmulator=kitty
TerminalEmulatorDismissed=true
'';
gtk = {
enable = true;
cursorTheme = {
package = pkgs.phinger-cursors;
name = "phinger-cursors";
};
gtk3.extraConfig = {
gtk-decoration-layout = "menu:";
gtk-xft-antialias = 1;
gtk-xft-hinting = 1;
gtk-xft-hintstyle = "hintfull";
gtk-xft-rgba = "rgb";
gtk-recent-files-enabled = false;
};
iconTheme = {
package = pkgs.fluent-icon-theme;
name = "Fluent";
};
};
programs.kitty = {
enable = true;
settings = {
enable_audio_bell = false;
allow_remote_control = true;
dynamic_background_opacity = true;
background_opacity = "0.95";
close_on_child_death = true;
cursor_blink_interval = 0;
wayland_titlebar_color = "background";
listen_on = "unix:/tmp/kitty";
open_url_with = "librewolf";
window_padding_width = 10;
tab_bar_margin_width = 10;
};
};
xdg.configFile."kitty/diff.conf".text = ''
map d scroll_to next-page
map u scroll_to prev-page
map g scroll_to start
map G scroll_to end
'';
programs.bat = {
enable = true;
};
programs.swaylock = {
package = pkgs."swaylock-effects";
settings = {
show-keyboard-layout = true;
daemonize = true;
font = "Noto Sans CJK JP";
effect-blur = "5x2";
clock = true;
indicator = true;
font-size = 25;
indicator-radius = 85;
indicator-thickness = 16;
screenshots = true;
fade-in = 1;
};
};
services.dunst = {
enable = true;
};
programs.waybar = {
enable = true;
package = hyprland.packages."x86_64-linux".waybar-hyprland;
settings = {
mainBar = {
layer = "bottom";
position = "top";
height = 30;
modules-left = [ "wlr/taskbar" "tray" ];
modules-center = [ "hyprland/window" ];
modules-right = [ "battery" "backlight" "wireplumber" "clock" ];
};
};
};
programs.zathura = {
enable = true;
options = {
guioptions = "v";
adjust-open = "width";
statusbar-basename = true;
render-loading = false;
scroll-step = 120;
};
};
services.mpd = {
enable = true;
};
programs.ncmpcpp = {
enable = true;
};
};
}