Skip to content

Instantly share code, notes, and snippets.

@sheenobu
Forked from travisbhartwell/i3-gaps.nix
Last active January 20, 2016 21:11
Show Gist options
  • Save sheenobu/2147d18734b51b8f1179 to your computer and use it in GitHub Desktop.
Save sheenobu/2147d18734b51b8f1179 to your computer and use it in GitHub Desktop.
# i3 desktop config
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
dmenu # for app launcher
feh # for background image
i3
i3lock # screen lock
i3status # sys info
scrot # for screenshot
# xorg.utilmacros
# xorg.xcursorgen
# xorg.xcursorthemes
];
nixpkgs.config.packageOverrides = pkgs: {
i3 = pkgs.stdenv.lib.overrideDerivation pkgs.i3 (oldAttrs: rec {
src = pkgs.fetchgit {
url = "http://github.com/Airblader/i3.git";
rev = "refs/heads/gaps-next";
sha256 = "0j8s4lc84gwm2ww0mjgwnjbv7wmk68wc99rp3c078spb3kc6xd4b";
};
# the i3 package is built for the main release and not the 'next' branch
# so the i3 postInstall is currently broken
postInstall = ''
'';
postUnpack = ''
find .
echo -n "4.10.2 (2015-07-14, branch \\\"gaps-next\\\")" > ./i3/I3_VERSION
echo -n "4.10.2" > ./i3/VERSION
'';
});
};
services.xserver = {
windowManager = {
i3.enable = true;
default = "i3";
};
# displayManager = {
# sessionCommands = "i3status &";
# };
desktopManager = {
default = "none";
xterm.enable = false;
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment