dots-of-war/files/nix-stuff/nixpkgs/modules/desktop.nix

136 lines
2.9 KiB
Nix
Raw Normal View History

2020-08-09 18:32:27 +00:00
{ config, lib, pkgs, ... }:
let
2020-08-16 21:05:10 +00:00
cfg = config.elkowar.desktop;
2020-08-09 18:32:27 +00:00
in
{
2020-08-16 21:05:10 +00:00
options.elkowar.desktop = {
2020-08-09 18:32:27 +00:00
enable = lib.mkEnableOption "Desktop configuration enabled";
};
2020-08-16 21:05:10 +00:00
imports = [ ./desktop ];
2020-08-09 18:32:27 +00:00
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
2020-08-25 22:26:00 +00:00
(scr.override { extraPackages = [ rofi ]; })
mmutils
liquidctl
bashtop
2020-08-09 18:32:27 +00:00
cool-retro-term
gromit-mpx
2020-08-18 13:20:00 +00:00
polybarFull
discord
2020-10-19 15:40:50 +00:00
pinta
2020-11-07 13:05:49 +00:00
espanso
2020-12-25 16:48:15 +00:00
barrier
2020-08-09 18:32:27 +00:00
#hyper-haskell
2021-01-31 10:55:50 +00:00
font-manager
2021-03-16 15:14:21 +00:00
sqlite-web
#flameshot
sxhkd
okular
2020-08-09 18:32:27 +00:00
];
2020-08-16 21:05:10 +00:00
elkowar.desktop = {
gtk.enable = true;
};
elkowar.programs = {
alacritty.enable = true;
rofi.enable = true;
2020-08-18 22:25:19 +00:00
firefox.enable = false;
2020-08-16 21:05:10 +00:00
};
programs = {
2020-08-09 18:32:27 +00:00
mpv = {
enable = true;
bindings = {
WHEEL_UP = "add volume 5";
WHEEL_DOWN = "add volume -5";
WHEEL_LEFT = "seek -3";
WHEEL_RIGHT = "seek 3";
h = "seek -3";
l = "seek 3";
};
};
2020-08-16 21:05:10 +00:00
feh = {
enable = true;
keybindings = { zoom_in = "plus"; zoom_out = "minus"; };
};
2020-08-09 18:32:27 +00:00
};
2021-03-16 15:14:21 +00:00
systemd.user.services.dunst.Environment.DISPLAY = ":1";
2020-08-09 18:32:27 +00:00
services = {
mpd = {
enable = true;
musicDirectory = "/home/leon/Downloads/music";
};
udiskie.enable = true;
2020-09-20 08:29:51 +00:00
kdeconnect = {
enable = true;
};
dunst =
let dunst_settings = {
geometry = "500x5-30+50";
background = cfg.colors.primary.bg_darker;
foreground = cfg.colors.primary.foreground;
padding = "20px";
horizontal_padding = "20px";
font = "Terminus (TTF)";
};
in
{
enable = true;
settings.global = dunst_settings;
settings.urgency_normal = dunst_settings;
2020-12-25 10:53:37 +00:00
2020-09-20 08:29:51 +00:00
settings.urgency_low = dunst_settings;
};
};
xresources.properties = with config.elkowar.desktop.colors; {
"Xcursor.size" = "16";
"Xcursor.theme" = "capitaine-cursors-light";
"Xft.autohint" = "0";
"Xft.antialias" = "1";
"Xft.hinting" = "true";
"Xft.hintstyle" = "hintslight";
"Xft.dpi" = "96";
"Xft.rgba" = "rgb";
"Xft.lcdfilter" = "lcddefault";
2020-11-21 12:06:55 +00:00
"st.font" = "Terminus (TTF):pixelsize=16";
2020-12-25 10:53:37 +00:00
2020-09-20 08:29:51 +00:00
"*.background" = primary.background;
"*.foreground" = primary.foreground;
"*.color0" = normal.black;
"*.color1" = normal.red;
"*.color2" = normal.green;
"*.color3" = normal.yellow;
"*.color4" = normal.blue;
"*.color5" = normal.magenta;
"*.color6" = normal.cyan;
"*.color7" = normal.white;
"*.color8" = bright.black;
"*.color9" = bright.red;
"*.color10" = bright.green;
"*.color11" = bright.yellow;
"*.color12" = bright.blue;
"*.color13" = bright.magenta;
"*.color14" = bright.cyan;
"*.color15" = bright.white;
2020-08-09 18:32:27 +00:00
};
};
}