nixfiles/nixos/modules/gui.nix

39 lines
753 B
Nix
Raw Normal View History

2022-09-09 01:04:25 +01:00
{ lib, pkgs, config, ... }:
let
inherit (lib) optional mkIf mkDefault mkMerge;
inherit (lib.my) mkBoolOpt';
cfg = config.my.gui;
in
{
options.my.gui = with lib.types; {
enable = mkBoolOpt' true "Whether to enable GUI system options.";
};
config = mkIf cfg.enable {
hardware = {
opengl.enable = mkDefault true;
};
services = {
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
jack.enable = true;
};
};
2022-09-09 14:11:34 +01:00
programs.dconf.enable = true;
2022-09-09 17:47:27 +01:00
fonts.fonts = with pkgs; [
dejavu_fonts
freefont_ttf
gyre-fonts # TrueType substitutes for standard PostScript fonts
liberation_ttf
unifont
noto-fonts-emoji
];
2022-09-09 01:04:25 +01:00
};
}