loadout/default.nix

102 lines
1.7 KiB
Nix
Raw Normal View History

2017-10-18 00:12:57 +00:00
{
hostConfig,
2017-10-18 00:12:57 +00:00
pkgs ? (import ./pkgs.nix).stable {},
pkgs2305 ? (import ./pkgs.nix).stable2305 {},
2017-10-18 00:12:57 +00:00
}: let
2017-10-18 00:12:57 +00:00
config = (import ./config/default.nix) // hostConfig ;
in rec {
gitConfig = pkgs.stdenv.mkDerivation {
name = "mediocregopher-git-config";
gitConfigBase = ./base/gitconfig;
gitConfigCustom = builtins.toFile "mediocregopher-git-config-custom"
(pkgs.lib.generators.toGitINI config.git);
builder = builtins.toFile "builder.sh" ''
source $stdenv/setup
dir="$out"/git
mkdir -p "$dir"
cp "$gitConfigBase" "$dir"/config
cp "$gitConfigCustom" "$dir"/custom
'';
};
2017-10-18 00:12:57 +00:00
git = pkgs.writeScriptBin "git" ''
#!${pkgs.bash}/bin/bash
export XDG_CONFIG_HOME=${gitConfig}
exec ${pkgs.git}/bin/git "$@"
'';
zsh = ((import ./zsh) { inherit config; }).zsh;
2017-10-18 00:12:57 +00:00
loadout = pkgs.buildEnv {
name = "loadout";
paths = [
pkgs2305.nix
2017-10-18 00:12:57 +00:00
pkgs.gnugrep
pkgs.ag
pkgs.gawk
pkgs.tree
2017-10-18 00:12:57 +00:00
git
pkgs.mercurial
pkgs.breezy # bzr
pkgs.gnumake
pkgs.cmake
pkgs.strace
pkgs.curl
pkgs.wget
pkgs.rsync
pkgs.hostname
pkgs.netcat
pkgs.nmap
pkgs.dnsutils
pkgs.openssh
pkgs.sshfs
pkgs.fuse3
2017-10-18 00:12:57 +00:00
pkgs.tmux
pkgs.ncdu
pkgs.htop
pkgs.jnettop
2017-10-18 00:12:57 +00:00
pkgs.unzip
pkgs.unrar
pkgs.gzip
pkgs.jq
pkgs.yq
pkgs.tomb
pkgs.udiskie
2017-10-18 00:12:57 +00:00
((import ./nvim) {}).nvim
2017-10-18 00:12:57 +00:00
zsh
((import ./alacritty) { inherit config zsh; }).alacritty
((import ./awesome) { inherit config; }).awesome
2017-10-18 00:12:57 +00:00
];
};
fonts = pkgs.buildEnv {
name = "fonts";
paths = [
pkgs.nerdfonts
pkgs.source-code-pro
];
2017-10-18 00:12:57 +00:00
};
}