2017-10-18 00:12:57 +00:00
|
|
|
{
|
|
|
|
|
2023-08-13 19:34:14 +00:00
|
|
|
hostConfig,
|
2017-10-18 00:12:57 +00:00
|
|
|
|
2023-08-13 19:34:14 +00:00
|
|
|
pkgs ? (import ./pkgs.nix).stable {},
|
|
|
|
pkgs2305 ? (import ./pkgs.nix).stable2305 {},
|
2017-10-18 00:12:57 +00:00
|
|
|
|
2023-08-13 19:34:14 +00:00
|
|
|
}: let
|
2017-10-18 00:12:57 +00:00
|
|
|
|
2023-08-13 19:34:14 +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 "$@"
|
|
|
|
'';
|
|
|
|
|
2023-08-13 19:34:14 +00:00
|
|
|
zsh = ((import ./zsh) { inherit config; }).zsh;
|
2017-10-18 00:12:57 +00:00
|
|
|
|
|
|
|
loadout = pkgs.buildEnv {
|
|
|
|
name = "loadout";
|
|
|
|
paths = [
|
2023-08-13 19:34:14 +00:00
|
|
|
pkgs2305.nix
|
2017-10-18 00:12:57 +00:00
|
|
|
|
|
|
|
pkgs.gnugrep
|
|
|
|
pkgs.ag
|
|
|
|
pkgs.gawk
|
2023-08-13 19:34:14 +00:00
|
|
|
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
|
2023-08-13 19:34:14 +00:00
|
|
|
pkgs.sshfs
|
|
|
|
pkgs.fuse3
|
2017-10-18 00:12:57 +00:00
|
|
|
|
|
|
|
pkgs.tmux
|
|
|
|
|
|
|
|
pkgs.ncdu
|
|
|
|
pkgs.htop
|
2023-08-13 19:34:14 +00:00
|
|
|
pkgs.jnettop
|
2017-10-18 00:12:57 +00:00
|
|
|
|
|
|
|
pkgs.unzip
|
|
|
|
pkgs.unrar
|
|
|
|
pkgs.gzip
|
|
|
|
|
|
|
|
pkgs.jq
|
|
|
|
pkgs.yq
|
|
|
|
|
2023-08-13 19:34:14 +00:00
|
|
|
pkgs.tomb
|
|
|
|
pkgs.udiskie
|
2017-10-18 00:12:57 +00:00
|
|
|
|
2023-08-13 19:34:14 +00:00
|
|
|
((import ./nvim) {}).nvim
|
2017-10-18 00:12:57 +00:00
|
|
|
zsh
|
2023-08-13 19:34:14 +00:00
|
|
|
((import ./alacritty) { inherit config zsh; }).alacritty
|
|
|
|
((import ./awesome) { inherit config; }).awesome
|
2017-10-18 00:12:57 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-08-13 19:34:14 +00:00
|
|
|
fonts = pkgs.buildEnv {
|
|
|
|
name = "fonts";
|
|
|
|
paths = [
|
|
|
|
pkgs.nerdfonts
|
|
|
|
pkgs.source-code-pro
|
|
|
|
];
|
2017-10-18 00:12:57 +00:00
|
|
|
};
|
|
|
|
}
|