2020-07-03 22:47:14 +00:00
|
|
|
# https://nixos.wiki/wiki/Wrappers_vs._Dotfiles
|
|
|
|
# https://nixos.org/nixos/manual/index.html#sec-writing-modules
|
|
|
|
|
|
|
|
# do this to change to fork
|
|
|
|
# nix-channel --add https://github.com/ElKowar/home-manager/archive/alacritty-package-option.tar.gz home-manager
|
|
|
|
# nix-channel --update
|
|
|
|
# nix-env -u home-manager
|
|
|
|
|
2020-06-29 17:38:15 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
elkowar_local = import ./local/default.nix {};
|
2020-07-03 22:47:14 +00:00
|
|
|
myConf = import ./myConfig.nix;
|
2020-06-29 17:38:15 +00:00
|
|
|
in
|
|
|
|
{
|
2020-08-05 12:55:11 +00:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
2020-07-03 22:47:14 +00:00
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
|
|
|
inherit pkgs;
|
|
|
|
};
|
2020-07-10 13:16:46 +00:00
|
|
|
cool-retro-term = (
|
|
|
|
pkgs.writeScriptBin "cool-retro-term" ''
|
|
|
|
#!/bin/sh
|
|
|
|
exec nixGLIntel ${pkgs.cool-retro-term}/bin/cool-retro-term "$@"
|
|
|
|
''
|
|
|
|
);
|
2020-07-03 22:47:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-08-05 12:55:11 +00:00
|
|
|
|
2020-07-04 11:29:51 +00:00
|
|
|
home.packages = with pkgs; [
|
2020-06-29 17:38:15 +00:00
|
|
|
elkowar_local.bashtop
|
2020-07-04 11:29:51 +00:00
|
|
|
direnv
|
|
|
|
rnix-lsp
|
|
|
|
nix-prefetch-git
|
|
|
|
gtop
|
|
|
|
simplescreenrecorder
|
|
|
|
bat
|
|
|
|
websocat
|
2020-07-04 14:33:50 +00:00
|
|
|
niv
|
2020-07-07 09:11:11 +00:00
|
|
|
exa
|
2020-07-07 09:21:47 +00:00
|
|
|
gromit-mpx
|
2020-07-07 09:11:11 +00:00
|
|
|
zsh-completions
|
2020-07-10 13:16:46 +00:00
|
|
|
cool-retro-term
|
2020-08-05 12:55:11 +00:00
|
|
|
ghc
|
|
|
|
|
|
|
|
mdcat
|
|
|
|
github-cli
|
|
|
|
#hyper-haskell
|
2020-06-29 17:38:15 +00:00
|
|
|
];
|
|
|
|
|
2020-08-05 12:55:11 +00:00
|
|
|
gtk = import ./config/gtk.nix { inherit pkgs; inherit myConf; };
|
2020-07-02 13:40:06 +00:00
|
|
|
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
2020-07-03 22:47:14 +00:00
|
|
|
alacritty = import ./config/alacritty.nix { inherit pkgs; inherit myConf; }; # <- https://github.com/guibou/nixGL
|
|
|
|
zsh = import ./config/zsh.nix { inherit pkgs; inherit myConf; };
|
2020-07-07 09:11:11 +00:00
|
|
|
tmux = import ./config/tmux.nix { inherit pkgs; inherit myConf; };
|
|
|
|
feh = import ./config/feh.nix;
|
2020-08-09 11:42:22 +00:00
|
|
|
rofi = import ./config/rofi { inherit pkgs; inherit myConf; };
|
2020-07-04 17:05:32 +00:00
|
|
|
|
2020-08-05 12:55:11 +00:00
|
|
|
htop.enable = true;
|
2020-07-02 13:40:06 +00:00
|
|
|
|
|
|
|
mpv = {
|
|
|
|
enable = true;
|
|
|
|
bindings = {
|
|
|
|
WHEEL_UP = "add volume 5";
|
|
|
|
WHEEL_DOWN = "add volume -5";
|
|
|
|
WHEEL_LEFT = "seek -3";
|
|
|
|
WHEEL_RIGHT = "seek 3";
|
|
|
|
h = "seek -3";
|
|
|
|
l = "seek 3";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fzf = {
|
|
|
|
enable = true;
|
|
|
|
enableFishIntegration = true;
|
2020-07-05 22:43:10 +00:00
|
|
|
enableZshIntegration = true;
|
2020-07-02 13:40:06 +00:00
|
|
|
defaultCommand = "rg --files";
|
|
|
|
fileWidgetCommand = "fd --type f";
|
|
|
|
changeDirWidgetCommand = "rg --files --null | xargs -0 dirname | sort -u";
|
|
|
|
};
|
|
|
|
|
|
|
|
direnv = {
|
|
|
|
enable = true;
|
|
|
|
enableFishIntegration = true;
|
2020-07-07 09:11:11 +00:00
|
|
|
enableZshIntegration = true;
|
|
|
|
enableNixDirenvIntegration = true;
|
2020-07-02 13:40:06 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-08-05 12:55:11 +00:00
|
|
|
services = {
|
|
|
|
mpd = {
|
|
|
|
enable = true;
|
|
|
|
musicDirectory = "/home/leon/Downloads/music";
|
|
|
|
};
|
|
|
|
udiskie.enable = true;
|
|
|
|
};
|
|
|
|
|
2020-08-05 13:22:13 +00:00
|
|
|
|
|
|
|
home.sessionVariables = {
|
|
|
|
LOCALE_ARCHIVE_2_11 = "${pkgs.glibcLocales}/lib/locale/locale-archive";
|
|
|
|
LOCALE_ARCHIVE_2_27 = "${pkgs.glibcLocales}/lib/locale/locale-archive";
|
|
|
|
LOCALE_ARCHIVE = "/usr/bin/locale";
|
|
|
|
};
|
2020-06-29 17:38:15 +00:00
|
|
|
home.username = "leon";
|
|
|
|
home.homeDirectory = "/home/leon";
|
|
|
|
|
|
|
|
home.stateVersion = "20.09";
|
|
|
|
}
|