users/global: clean up graphical setup
This commit is contained in:
parent
30219401b0
commit
b114856020
6 changed files with 64 additions and 71 deletions
|
@ -24,6 +24,7 @@
|
||||||
fd
|
fd
|
||||||
fzf
|
fzf
|
||||||
gptfdisk
|
gptfdisk
|
||||||
|
gnumake
|
||||||
htop
|
htop
|
||||||
hyfetch
|
hyfetch
|
||||||
imagemagick
|
imagemagick
|
||||||
|
|
|
@ -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,7 +44,6 @@ lib.mkIf main.info.graphical {
|
||||||
dockfmt
|
dockfmt
|
||||||
|
|
||||||
# :lang latex
|
# :lang latex
|
||||||
(ifGraphical [
|
|
||||||
(texlive.combine {
|
(texlive.combine {
|
||||||
inherit (texlive)
|
inherit (texlive)
|
||||||
scheme-medium
|
scheme-medium
|
||||||
|
@ -75,7 +69,6 @@ lib.mkIf main.info.graphical {
|
||||||
;
|
;
|
||||||
})
|
})
|
||||||
biber
|
biber
|
||||||
])
|
|
||||||
|
|
||||||
# :lang markdown
|
# :lang markdown
|
||||||
# python3Packages.grip
|
# python3Packages.grip
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
{ 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;
|
||||||
|
@ -10,5 +9,4 @@
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
playerctl
|
playerctl
|
||||||
];
|
];
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ main, pkgs, ... }: {
|
{ main, pkgs, ... }:
|
||||||
|
{
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
enable = main.info.graphical;
|
enable = main.info.graphical;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ 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";
|
||||||
|
@ -30,5 +30,4 @@
|
||||||
};
|
};
|
||||||
platformTheme.name = "adwaita";
|
platformTheme.name = "adwaita";
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }:
|
||||||
|
{
|
||||||
programs.vim = {
|
programs.vim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue