Skip to content

Instantly share code, notes, and snippets.

@sneak
Created October 15, 2023 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sneak/09ff784b376c9b565145dfa33cc797cd to your computer and use it in GitHub Desktop.
Save sneak/09ff784b376c9b565145dfa33cc797cd to your computer and use it in GitHub Desktop.
{
allowUnsupportedSystem = true;
allowUnfree = true;
fonts = pkgs: with pkgs; {
enableFontDir = true;
fonts = [
ibm-plex
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
liberation_ttf
fira-code
fira-code-symbols
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
pkgs.dejavu_fonts
];
};
packageOverrides = pkgs: with pkgs; rec {
myProfile = writeText "my-profile" ''
export PATH=$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/sbin:/bin:/usr/sbin:/usr/bin
export MANPATH=$HOME/.nix-profile/share/man:/nix/var/nix/profiles/default/share/man:/usr/share/man
'';
cyberdyne = pkgs.buildEnv {
name = "cyberdyne";
paths = [
basePackages
macPackages
];
pathsToLink = [ "/Applications" "/share/man" "/share/doc" "/bin" "/etc" ];
extraOutputsToInstall = [ "man" "doc" ];
};
akrotiri = pkgs.buildEnv {
name = "akrotiri";
paths = [
basePackages
macPackages
];
pathsToLink = [ "/Applications" "/share/man" "/share/doc" "/bin" "/etc" ];
extraOutputsToInstall = [ "man" "doc" ];
};
macPackages = pkgs.buildEnv {
name = "macPackages";
paths = [
pinentry_mac
];
pathsToLink = [ "/Applications" "/share/man" "/share/doc" "/bin" "/etc" ];
extraOutputsToInstall = [ "man" "doc" ];
};
basePackages = pkgs.buildEnv {
name = "my-packages";
paths = [
(runCommand "profile" {} ''
mkdir -p $out/etc/profile.d
cp ${myProfile} $out/etc/profile.d/my-profile.sh
'')
age
aria2
awscli2
binwalk
clamav
clang-tools
cmake
cmus
coreutils
docker
fdupes
ffmpeg
figlet
flac
gcc
gdb
gnupg
go
htop
httpie
hugo
imagemagick
iperf
jq
llvm
lynx
matterhorn
mosh
mtr
mutt
nebula
neofetch
neovim
nmap
nodejs
cacert
openssl
par2cmdline
parallel
pbzip2
protobuf
pv
pwgen
qpdf
qprint
rar
rclone
rsync
runit
smokeping
speedtest-cli
stress
swig
tcptraceroute
tmux
tor
vim
vimpager
watch
weechat
wget
wireshark-cli
xz
yarn
zstd
];
pathsToLink = [ "/share/man" "/share/doc" "/bin" "/etc" ];
extraOutputsToInstall = [ "man" "doc" ];
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment