Skip to content

Instantly share code, notes, and snippets.

@mrkgnao

mrkgnao/home.nix Secret

Last active February 13, 2018 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrkgnao/5be39ba87cf5aefa816757f68739dcb2 to your computer and use it in GitHub Desktop.
Save mrkgnao/5be39ba87cf5aefa816757f68739dcb2 to your computer and use it in GitHub Desktop.
home-manager config
{ pkgs, lib, ... }:
{
home.packages = with pkgs; [
fd
feh
termite
shutter
htop
fortune
inotify-tools
i3lock
xorg.xmessage
xorg.xmodmap
zathura
file
iosevka
iosevka-term
alacritty
python
qbittorrent
rofi
firefox-bin
ripgrep
glirc
# stylish-haskell
# hindent
# hlint
mpv
ranger
xcape
light
eject
pass
beets
nixUnstable
];
xsession = {
enable = true;
windowManager = {
xmonad = {
enable = true;
extraPackages = hsPkgs: [ hsPkgs.xmonad-contrib ];
};
};
profileExtra = ''
xmodmap .xmodmap
xcape -e 'Super_R=Tab;Hyper_R=Return;Control_R=Escape'
sh $HOME/.fehbg &
'';
};
programs = {
git = {
enable = true;
userName = "Soham Chowdhury";
userEmail = "chow.soham@gmail.com";
extraConfig = ''
[url "git://github.com/ghc/packages-"]
insteadOf = git://github.com/ghc/packages/
[url "http://github.com/ghc/packages-"]
insteadOf = http://github.com/ghc/packages/
[url "https://github.com/ghc/packages-"]
insteadOf = https://github.com/ghc/packages/
[url "ssh://git@github.com/ghc/packages-"]
insteadOf = ssh://git@github.com/ghc/packages/
[url "git@github.com:ghc/packages-"]
insteadOf = git@github.com:ghc/packages/
'';
};
bash.enable = true;
bash.profileExtra = ''
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
'';
browserpass.enable = true;
command-not-found.enable = true;
home-manager.enable = true;
home-manager.path = https://github.com/rycee/home-manager/archive/master.tar.gz;
# home-manager.path = https://github.com/rycee/home-manager/archive/release-17.09.tar.gz;
};
services = {
udiskie.enable = true;
redshift = {
enable = true;
latitude = "22.572646";
longitude = "88.363895";
};
screen-locker = {
enable = true;
lockCmd = "\${pkgs.i3lock}/bin/i3lock -n -c 000000";
inactiveInterval = 2;
};
polybar = {
enable = true;
script = "polybar top & polybar bottom &";
package = pkgs.polybar.override {
alsaSupport = true;
iwSupport = true;
mpdSupport = true;
};
config =
import /home/frob/dotfiles/polybar-config.nix { inherit lib; };
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment