Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created August 2, 2017 08:51
Show Gist options
  • Save infinisil/8fc8ea5f883c50b7158610c723699424 to your computer and use it in GitHub Desktop.
Save infinisil/8fc8ea5f883c50b7158610c723699424 to your computer and use it in GitHub Desktop.
self: super: {
irc = super.writeScriptBin "irc" ''
export FREENODE_PASSWORD=$(${super.pass}/bin/pass social/freenode)
if [ -z "$FREENODE_PASSWORD" ]; then exit; fi
${super.irssi}/bin/irssi --home=$HOME/.config/irssi
'';
}
self: super: let
mkXDG = import ../xdg.nix;
in
{
wget = mkXDG {
pname = "wget";
pkg = super.wget;
mods = { cache }: {
wget.flags = "--hsts-file=${cache}/hsts";
};
};
zsh = mkXDG {
pname = "zsh";
pkg = super.zsh;
mods = { config }: {
zsh.env.ZDOTDIR = config;
};
};
irssi = mkXDG {
pname = "irssi";
pkg = super.irssi;
mods = { config }: {
irssi.flags = "--home=${config}";
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment