Created
August 2, 2017 08:51
-
-
Save infinisil/8fc8ea5f883c50b7158610c723699424 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
''; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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