From 479540d3885dce9a0225169f91c7e561faa8493d Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 9 Feb 2022 08:13:26 -0800 Subject: Revert "desktop: new option to control desktop setup" This reverts commit 343e89015a55b627400286a06937175facb1494d. --- modules/desktop/default.nix | 10 ---------- modules/desktop/fonts.nix | 33 +++++++++++++-------------------- 2 files changed, 13 insertions(+), 30 deletions(-) (limited to 'modules/desktop') diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 3ee9fb5..f150066 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -1,15 +1,5 @@ {lib, config, pkgs, ...}: -with lib; - { - options.sys.graphics = { - desktopProtocols = mkOption { - type = with types; listOf (enum ["xorg" "wayland"]); - default = []; - description = "Desktop protocols you want to use for your desktop environment. If unset, no desktop is installed (headless host)."; - }; - }; - imports = [ ./fonts.nix ./sound.nix diff --git a/modules/desktop/fonts.nix b/modules/desktop/fonts.nix index 367e42e..a840582 100644 --- a/modules/desktop/fonts.nix +++ b/modules/desktop/fonts.nix @@ -1,25 +1,18 @@ -{pkgs, config, lib, ... }: -with lib; +{ pkgs, config, lib, ... }: -let - xorg = (elem "xorg" config.sys.graphics.desktopProtocols); - wayland = (elem "wayland" config.sys.graphics.desktopProtocols); - desktopMode = xorg || wayland; -in { - config= mkIf desktopMode { - fonts = { - fontconfig.enable = true; - fonts = with pkgs; [ - noto-fonts-emoji - dejavu_fonts - source-code-pro - source-sans-pro - source-serif-pro - ]; +{ + fonts = { + fontconfig.enable = true; + fonts = with pkgs; [ + noto-fonts-emoji + dejavu_fonts + source-code-pro + source-sans-pro + source-serif-pro + ]; - fontconfig.defaultFonts = { - monospace = [ "Source Code Pro" ]; - }; + fontconfig.defaultFonts = { + monospace = [ "Source Code Pro" ]; }; }; } -- cgit 1.4.1