dots-of-war/files/nix-stuff/nixpkgs/profiles/base.nix

76 lines
1.8 KiB
Nix
Raw Normal View History

2020-08-09 18:32:27 +00:00
{ config, lib, pkgs, ... }:
let
cfg = config.profiles.base;
elkowar_local = import ../local/default.nix {};
myConf = import ../myConfig.nix;
in
{
options.profiles.base = {
enable = lib.mkEnableOption "Basic profile enabled";
#useZsh = lib.mkEnableOption
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
direnv
rnix-lsp
nix-prefetch-git
gtop
bat
websocat
niv
exa
zsh-completions
trash-cli
mdcat
github-cli
haskellPackages.nix-tree
ripgrep
fd
jq
(import (fetchTarball https://github.com/lf-/nix-doc/archive/main.tar.gz) {})
];
programs = {
home-manager.enable = true;
htop.enable = true;
zsh = import ../config/zsh.nix { inherit pkgs; inherit myConf; };
tmux = import ../config/tmux.nix { inherit pkgs; inherit myConf; };
fzf = {
enable = true;
enableFishIntegration = true;
enableZshIntegration = true;
defaultCommand = "rg --files";
fileWidgetCommand = "fd --type f";
changeDirWidgetCommand = "rg --files --null | xargs -0 dirname | sort -u";
};
direnv = {
enable = true;
enableFishIntegration = true;
enableZshIntegration = true;
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";
};
};
}