users/global: clean up graphical setup

This commit is contained in:
Infinidoge 2024-07-15 08:50:36 -04:00
parent 30219401b0
commit b114856020
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
6 changed files with 64 additions and 71 deletions

View file

@ -24,6 +24,7 @@
fd fd
fzf fzf
gptfdisk gptfdisk
gnumake
htop htop
hyfetch hyfetch
imagemagick imagemagick

View file

@ -1,9 +1,6 @@
{ config, main, pkgs, lib, ... }: { config, main, pkgs, lib, ... }:
let lib.mkIf main.info.graphical
ifGraphical = lib.optionals main.info.graphical; {
ifGraphical' = lib.optional main.info.graphical;
in
lib.mkIf main.info.graphical {
programs.emacs = { programs.emacs = {
enable = true; enable = true;
extraPackages = epkgs: with epkgs; [ vterm pdf-tools emacsql-sqlite ]; extraPackages = epkgs: with epkgs; [ vterm pdf-tools emacsql-sqlite ];
@ -24,8 +21,6 @@ lib.mkIf main.info.graphical {
# --- Doom Emacs --- # --- Doom Emacs ---
mlocate mlocate
gnumake
# --- :tools --- # --- :tools ---
# :tools editorconfig # :tools editorconfig
editorconfig-core-c editorconfig-core-c
@ -49,33 +44,31 @@ lib.mkIf main.info.graphical {
dockfmt dockfmt
# :lang latex # :lang latex
(ifGraphical [ (texlive.combine {
(texlive.combine { inherit (texlive)
inherit (texlive) scheme-medium
scheme-medium
apa7 apa7
apacite apacite
biblatex biblatex
biblatex-apa biblatex-apa
biblatex-chicago biblatex-chicago
capt-of minted capt-of minted
catchfile catchfile
endfloat endfloat
framed framed
fvextra fvextra
hanging hanging
lipsum lipsum
mleftright mleftright
scalerel scalerel
threeparttable threeparttable
upquote upquote
wrapfig wrapfig
xstring xstring
; ;
}) })
biber biber
])
# :lang markdown # :lang markdown
# python3Packages.grip # python3Packages.grip

View file

@ -1,14 +1,12 @@
{ main, config, lib, pkgs, ... }: { main, config, lib, pkgs, ... }:
lib.mkIf main.info.graphical
{ {
config = lib.mkIf main.info.graphical { services = {
services = { mpris-proxy.enable = true;
mpris-proxy.enable = true; playerctld.enable = true;
playerctld.enable = true;
};
home.packages = with pkgs; [
playerctl
];
}; };
home.packages = with pkgs; [
playerctl
];
} }

View file

@ -1,4 +1,5 @@
{ main, pkgs, ... }: { { main, pkgs, ... }:
{
programs.rofi = { programs.rofi = {
enable = main.info.graphical; enable = main.info.graphical;
extraConfig = { extraConfig = {

View file

@ -1,34 +1,33 @@
{ lib, main, config, pkgs, ... }: { lib, main, config, pkgs, ... }:
lib.mkIf main.info.graphical
{ {
config = lib.mkIf main.info.graphical { gtk = {
gtk = { enable = true;
enable = true; gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
font = { font = {
package = pkgs.dejavu_fonts; package = pkgs.dejavu_fonts;
name = "DejaVu Sans"; name = "DejaVu Sans";
size = 10; size = 10;
};
iconTheme = {
package = pkgs.gnome.adwaita-icon-theme;
name = "Adwaita-dark";
};
theme = {
package = pkgs.gnome.gnome-themes-extra;
name = "Adwaita-dark";
};
}; };
qt = { iconTheme = {
enable = true; package = pkgs.gnome.adwaita-icon-theme;
style = { name = "Adwaita-dark";
package = pkgs.adwaita-qt; };
name = "adwaita-dark";
}; theme = {
platformTheme.name = "adwaita"; package = pkgs.gnome.gnome-themes-extra;
name = "Adwaita-dark";
}; };
}; };
qt = {
enable = true;
style = {
package = pkgs.adwaita-qt;
name = "adwaita-dark";
};
platformTheme.name = "adwaita";
};
} }

View file

@ -1,4 +1,5 @@
{ ... }: { { ... }:
{
programs.vim = { programs.vim = {
enable = true; enable = true;
settings = { settings = {