about summary refs log tree commit diff
path: root/common.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2013-08-14 17:25:53 +0200
committeraszlig <aszlig@redmoonstudios.org>2013-08-14 17:34:30 +0200
commitd5ea14d0c1bb97b4dda09ac5db48b9205746c4ff (patch)
treef62e08b9e29296ef65260241d7f7816bdf9dce5f /common.nix
parentee2d6648335f6e1b9889fb72d1a9b680881032e5 (diff)
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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'common.nix')
-rw-r--r--common.nix28
1 files changed, 27 insertions, 1 deletions
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";