From b71560b1ecb4a89acb1417e654e9a74b90337fdc Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Mon, 5 Jul 2021 18:19:17 -0400 Subject: config --- modules/desktop.nix | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/modules/desktop.nix b/modules/desktop.nix index 6fcc3de..d912a69 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -1,8 +1,6 @@ { config, lib, pkgs, ... }: -let - cfg = config.orbekk.desktop; -in -{ +let cfg = config.orbekk.desktop; +in { options = { orbekk.desktop = { enable = lib.mkEnableOption "Enable standard desktop config"; @@ -44,7 +42,12 @@ in fonts = { enableDefaultFonts = true; - fonts = with pkgs; [ fira-code dejavu_fonts steamPackages.steam-fonts wqy_microhei ]; + fonts = with pkgs; [ + fira-code + dejavu_fonts + steamPackages.steam-fonts + wqy_microhei + ]; fontconfig = { defaultFonts = { sansSerif = [ "Noto Sans" "WenQuanYi Micro Hei" ]; @@ -62,7 +65,7 @@ in chromium discord dmenu - dzen2 + dzen2 emacs ffmpeg firefox-bin @@ -75,6 +78,7 @@ in networkmanagerapplet nix-index nixfmt + shfmt pavucontrol rofi rxvt_unicode-with-plugins @@ -88,14 +92,14 @@ in xorg.xbacklight xorg.xev xscreensaver - xsel # used by urxvt clipboard + xsel # used by urxvt clipboard xss-lock dunst ]; i18n.inputMethod = { enabled = "fcitx"; - fcitx.engines = with pkgs.fcitx-engines; [cloudpinyin]; + fcitx.engines = with pkgs.fcitx-engines; [ cloudpinyin ]; }; services = { @@ -122,7 +126,7 @@ in redshift = { enable = true; - extraOptions = ["-r"]; + extraOptions = [ "-r" ]; }; }; }; -- cgit v1.2.3