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-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-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-06-29 17:38:15 +00:00
|
|
|
];
|
|
|
|
|
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-07-04 17:05:32 +00:00
|
|
|
|
2020-07-05 22:43:10 +00:00
|
|
|
htop = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2020-07-07 09:21:47 +00:00
|
|
|
broot = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
lf = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2020-07-07 09:11:11 +00:00
|
|
|
#lsd = {
|
|
|
|
#enable = true;
|
|
|
|
#enableAliases = 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-06-29 17:38:15 +00:00
|
|
|
home.username = "leon";
|
|
|
|
home.homeDirectory = "/home/leon";
|
|
|
|
|
|
|
|
home.stateVersion = "20.09";
|
|
|
|
}
|