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

82 lines
1.9 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
};
2020-08-11 14:25:46 +00:00
imports = [ ../config/tmux.nix ../config/generalConfig.nix ../config/zsh.nix ];
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;
elkowar.programs.zsh.enable = true;
elkowar.generalConfig.shellAliases = {
gc = "git commit";
};
2020-08-09 18:32:27 +00:00
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
2020-08-11 14:25:46 +00:00
#(import (fetchTarball https://github.com/lf-/nix-doc/archive/main.tar.gz) {})
2020-08-09 18:32:27 +00:00
];
programs = {
home-manager.enable = true;
htop.enable = true;
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";
};
};
}