From a2ff148dc2a282c8d3e6f0889e88e4b6894afdfa Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Mon, 1 Feb 2021 15:45:49 +0000 Subject: [PATCH] Refactor --- desktop.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/desktop.nix b/desktop.nix index 0e19a62..aeb8308 100644 --- a/desktop.nix +++ b/desktop.nix @@ -4,12 +4,16 @@ let nonfree = import { config.allowUnfree = true; }; secrets = import ./secrets.nix; in { - services.xserver.enable = true; - services.xserver.layout = "us,ru"; # see also home-manager.nix - services.xserver.xkbOptions = "ctrl:nocaps,grp:rctrl_toggle"; # see also home-manager.nix - services.xserver.windowManager.xmonad.enable = true; - services.xserver.windowManager.xmonad.enableContribAndExtras = true; - services.xserver.dpi = 282; # 15.6 inch, 3840x2160 + services.xserver = { + enable = true; + layout = "us,ru"; # see also home-manager.nix + xkbOptions = "ctrl:nocaps,grp:rctrl_toggle"; # see also home-manager.nix + windowManager.xmonad = { + enable = true; + enableContribAndExtras = true; + }; + dpi = 282; # 15.6 inch, 3840x2160 + }; services.xserver.xautolock = { enable = true;