From d5ea14d0c1bb97b4dda09ac5db48b9205746c4ff Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 14 Aug 2013 17:25:53 +0200 Subject: common: Add i3 config to system configuration. This now embeds the i3 configuration file directly into the X session using the new option introduced by NixOS/nixos@9392329. The config file itself is not yet cleaned up and there is still quite a lot of cruft left over from my Debian system, but let's clean it up later. Signed-off-by: aszlig --- common.nix | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'common.nix') diff --git a/common.nix b/common.nix index d5713b5d..36ffa716 100644 --- a/common.nix +++ b/common.nix @@ -108,8 +108,34 @@ ''; windowManager = { - i3.enable = true; default = "i3"; + + i3.enable = true; + i3.configFile = with pkgs.lib; pkgs.substituteAll { + name = "i3.conf"; + src = ./cfgfiles/i3.conf; + + inherit (pkgs) conky dmenu xterm; + inherit (pkgs.xorg) xsetroot; + leftHead = head config.services.xserver.xrandrHeads; + rightHead = last config.services.xserver.xrandrHeads; + + conkyrc = pkgs.writeText "conkyrc" '' + cpu_avg_samples 2 + net_avg_samples 2 + no_buffers yes + out_to_console yes + out_to_ncurses no + out_to_stderr no + extra_newline no + update_interval 1.0 + uppercase no + use_spacer none + pad_percents 3 + use_spacer left + TEXT + ''; + }; }; desktopManager.default = "none"; -- cgit 1.4.1