Skip to content

Instantly share code, notes, and snippets.

@travisbhartwell
Forked from CestDiego/i3-gaps.nix
Last active January 20, 2016 21:10
Show Gist options
  • Save travisbhartwell/148022e33e3eb1697f11 to your computer and use it in GitHub Desktop.
Save travisbhartwell/148022e33e3eb1697f11 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 = "81b2c65663c3ce13a7e62f233d5d902fe50dd0356b7a239807f30230c40670d5";
};
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;
};
};
}
@travisbhartwell
Copy link
Author

sudo nixos-rebuild switch 2>&1 | tee rebuild.out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment