2019-08-06 10:56:54 -07:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2020-02-01 18:04:39 -08:00
|
|
|
imports = [
|
|
|
|
## Desktop apps
|
|
|
|
./apps/redshift.nix
|
|
|
|
./apps/rofi.nix # My launcher
|
2020-02-09 00:03:58 -08:00
|
|
|
|
|
|
|
# I often need a thumbnail browser to show off, peruse or organize photos,
|
|
|
|
# design work, or digital art.
|
|
|
|
# ./apps/nautilus.nix
|
|
|
|
./apps/thunar.nix
|
2020-02-01 18:04:39 -08:00
|
|
|
|
|
|
|
## Terminal
|
|
|
|
# ./apps/alacritty.nix
|
2020-02-02 14:35:14 -08:00
|
|
|
./apps/st.nix
|
|
|
|
# ./apps/urxvt.nix
|
2020-02-01 18:04:39 -08:00
|
|
|
];
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
desktopManager.xterm.enable = lib.mkDefault false;
|
|
|
|
displayManager.lightdm.greeters.mini.user = config.my.username;
|
2020-01-17 02:48:17 -08:00
|
|
|
};
|
|
|
|
|
2020-02-01 18:04:39 -08:00
|
|
|
my.packages = with pkgs; [
|
|
|
|
calibre # managing my ebooks
|
|
|
|
evince # pdf reader
|
|
|
|
feh # image viewer
|
|
|
|
mpv # video player
|
|
|
|
xclip
|
|
|
|
xdotool
|
|
|
|
libqalculate # calculator cli w/ currency conversion
|
2020-02-09 00:03:58 -08:00
|
|
|
(makeDesktopItem {
|
|
|
|
name = "scratch-calc";
|
|
|
|
desktopName = "Calculator";
|
|
|
|
icon = "calc";
|
|
|
|
exec = "scratch '${tmux}/bin/tmux new-session -s calc -n calc qalc'";
|
|
|
|
categories = "Development";
|
|
|
|
})
|
2020-02-01 18:04:39 -08:00
|
|
|
];
|
|
|
|
|
2020-01-17 02:48:17 -08:00
|
|
|
## Sound
|
|
|
|
sound.enable = true;
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
|
|
|
|
## Fonts
|
|
|
|
fonts = {
|
|
|
|
enableFontDir = true;
|
|
|
|
enableGhostscriptFonts = true;
|
|
|
|
fonts = with pkgs; [
|
|
|
|
ubuntu_font_family
|
|
|
|
dejavu_fonts
|
|
|
|
fira-code
|
|
|
|
fira-code-symbols
|
|
|
|
symbola
|
|
|
|
noto-fonts
|
|
|
|
noto-fonts-cjk
|
|
|
|
font-awesome-ttf
|
|
|
|
siji
|
|
|
|
];
|
|
|
|
fontconfig.defaultFonts = {
|
|
|
|
sansSerif = ["Ubuntu"];
|
|
|
|
monospace = ["Fira Code"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-01-17 01:22:50 -08:00
|
|
|
services.compton = {
|
|
|
|
backend = "glx";
|
|
|
|
vSync = true;
|
|
|
|
opacityRules = [
|
2020-02-09 00:03:58 -08:00
|
|
|
# "100:class_g = 'Firefox'"
|
|
|
|
# "100:class_g = 'Vivaldi-stable'"
|
2020-01-17 01:22:50 -08:00
|
|
|
"100:class_g = 'VirtualBox Machine'"
|
|
|
|
# Art/image programs where we need fidelity
|
|
|
|
"100:class_g = 'Gimp'"
|
|
|
|
"100:class_g = 'Inkscape'"
|
|
|
|
"100:class_g = 'aseprite'"
|
|
|
|
"100:class_g = 'krita'"
|
|
|
|
"100:class_g = 'feh'"
|
|
|
|
"100:class_g = 'mpv'"
|
2020-02-09 00:03:58 -08:00
|
|
|
"100:class_g = 'Rofi'"
|
|
|
|
"100:class_g = 'Peek'"
|
|
|
|
"99:_NET_WM_STATE@:32a = '_NET_WM_STATE_FULLSCREEN'"
|
|
|
|
];
|
|
|
|
shadowExclude = [
|
|
|
|
# Put shadows on notifications, the scratch popup and rofi only
|
|
|
|
"! name~='(scratch|Dunst)$'"
|
2020-01-17 01:22:50 -08:00
|
|
|
];
|
|
|
|
settings.blur-background-exclude = [
|
|
|
|
"window_type = 'dock'"
|
|
|
|
"window_type = 'desktop'"
|
2020-02-09 00:03:58 -08:00
|
|
|
"class_g = 'Rofi'"
|
2020-01-17 01:22:50 -08:00
|
|
|
"_GTK_FRAME_EXTENTS@:c"
|
|
|
|
];
|
|
|
|
};
|
2019-08-06 10:56:54 -07:00
|
|
|
}
|