2020-08-09 18:32:27 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
2020-08-16 21:05:10 +00:00
|
|
|
cfg = config.elkowar.base;
|
|
|
|
elkowar_local = import ../local/default.nix { };
|
2020-08-09 18:32:27 +00:00
|
|
|
myConf = import ../myConfig.nix;
|
2020-08-16 21:05:10 +00:00
|
|
|
sources = import ../nix/sources.nix;
|
2020-08-09 18:32:27 +00:00
|
|
|
in
|
|
|
|
{
|
2020-08-16 21:05:10 +00:00
|
|
|
options.elkowar.base = {
|
2020-08-09 18:32:27 +00:00
|
|
|
enable = lib.mkEnableOption "Basic profile enabled";
|
2020-08-11 15:56:16 +00:00
|
|
|
enableFish = lib.mkEnableOption "Fish shell";
|
|
|
|
enableZsh = lib.mkEnableOption "Zsh shell";
|
2020-08-09 18:32:27 +00:00
|
|
|
};
|
|
|
|
|
2020-08-16 21:05:10 +00:00
|
|
|
imports = [ ./term ./generalConfig.nix ];
|
2020-08-11 14:25:46 +00:00
|
|
|
|
2020-08-09 18:32:27 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2020-08-11 14:25:46 +00:00
|
|
|
elkowar.programs.tmux.enable = true;
|
2020-08-11 15:56:16 +00:00
|
|
|
elkowar.programs.zsh.enable = cfg.enableZsh;
|
|
|
|
elkowar.programs.fish.enable = cfg.enableFish;
|
|
|
|
elkowar.generalConfig.shellAbbrs = {
|
2020-08-16 21:05:10 +00:00
|
|
|
vim = "nvim";
|
|
|
|
tsh = "trash";
|
|
|
|
cxmonad = "nvim /home/leon/.xmonad/lib/Config.hs";
|
|
|
|
cnix = "cd ~/nixpkgs/ && nvim home.nix && cd -";
|
2020-08-11 15:56:16 +00:00
|
|
|
|
2020-08-16 21:05:10 +00:00
|
|
|
gaa = "git add --all";
|
|
|
|
gc = "git commit -m ";
|
|
|
|
gp = "git push";
|
|
|
|
gs = "git status";
|
2020-08-11 14:25:46 +00:00
|
|
|
};
|
|
|
|
|
2020-08-09 18:32:27 +00:00
|
|
|
home.packages = with pkgs; [
|
2020-08-16 21:05:10 +00:00
|
|
|
sources.manix
|
2020-08-09 18:32:27 +00:00
|
|
|
direnv
|
|
|
|
rnix-lsp
|
|
|
|
nix-prefetch-git
|
|
|
|
gtop
|
|
|
|
bat
|
|
|
|
websocat
|
|
|
|
niv
|
|
|
|
exa
|
|
|
|
trash-cli
|
|
|
|
mdcat
|
|
|
|
github-cli
|
|
|
|
haskellPackages.nix-tree
|
|
|
|
ripgrep
|
|
|
|
fd
|
|
|
|
jq
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
home-manager.enable = true;
|
|
|
|
htop.enable = true;
|
|
|
|
|
2020-08-16 21:05:10 +00:00
|
|
|
|
2020-08-09 18:32:27 +00:00
|
|
|
fzf = {
|
|
|
|
enable = true;
|
2020-08-11 15:56:16 +00:00
|
|
|
enableFishIntegration = cfg.enableFish;
|
|
|
|
enableZshIntegration = cfg.enableZsh;
|
2020-08-09 18:32:27 +00:00
|
|
|
defaultCommand = "rg --files";
|
|
|
|
fileWidgetCommand = "fd --type f";
|
|
|
|
changeDirWidgetCommand = "rg --files --null | xargs -0 dirname | sort -u";
|
|
|
|
};
|
|
|
|
|
|
|
|
direnv = {
|
|
|
|
enable = true;
|
2020-08-11 15:56:16 +00:00
|
|
|
enableFishIntegration = cfg.enableFish;
|
|
|
|
enableZshIntegration = cfg.enableZsh;
|
2020-08-09 18:32:27 +00:00
|
|
|
enableNixDirenvIntegration = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
home = {
|
|
|
|
sessionVariables = rec {
|
|
|
|
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";
|
|
|
|
|
|
|
|
EDITOR = "nvim";
|
|
|
|
VISUAL = "nvim";
|
|
|
|
GIT_EDITOR = EDITOR;
|
|
|
|
};
|
|
|
|
username = "leon";
|
|
|
|
homeDirectory = "/home/leon";
|
|
|
|
|
|
|
|
stateVersion = "20.09";
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|