+++ /dev/null
-{
- packageOverrides = pkgs: with pkgs; {
- # buildEnv is not absolutely equivalent to
- # `nix-env -i -f ./nixRoot/default.nix`, see
- # https://github.com/NixOS/nix/issues/2682
- immaePackages = pkgs.buildEnv {
- name = "Immae-packages";
- paths = builtins.attrValues (import ./nixRoot/default.nix);
- pathsToLink = [ "/bin" "/etc" "/include" "/lib" "/libexec" "/share"];
- extraOutputsToInstall = [ "bin" "man" "doc" "info" ];
- };
- # This adds header colors to the builds, but it rebuilds the whole
- # world from scratch, so only use it to debug!
- # add it as postHook in derivations
- immaePostHook = ''
- header() {
- echo -ne "\033[1;36m"
- echo -n "$1"
- echo -e "\033[0m"
- }
-
- echoCmd() {
- printf "\033[1;34m%s:\033[0m" "$1"
- shift
- printf ' %q' "$@"
- echo
- }
- '';
- };
-}
--- /dev/null
+builtins.attrValues (import ./nixRoot/overlays)
-with import <nixpkgs> { overlays = builtins.attrValues (import ./overlays); };
- # https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh
- # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks
- { # files in overlays/mypkgs.nix
- inherit boinctui;
- inherit cnagios;
- inherit duply;
- inherit flrn;
- inherit genius;
- inherit mtop;
- inherit muttprint;
- inherit mutt-ics;
- inherit nagios-cli;
- #inherit nagnu;
- inherit note;
- inherit notmuch-python2;
- inherit notmuch-python3;
- inherit notmuch-vim;
- inherit pg_activity;
- inherit pgloader;
- inherit telegram-cli;
- inherit telegram-history-dump;
- inherit telegramircd;
- inherit terminal-velocity;
- inherit tiv;
- inherit unicodeDoc;
-
- inherit cardano;
- inherit iota-cli-app;
- inherit sia;
- } // { # overlays
- inherit weboob;
- inherit taskwarrior;
- inherit slrn;
- inherit sc-im;
- inherit lesspipe;
- inherit neomutt;
- inherit weechat;
- inherit goaccess;
- inherit profanity;
- inherit nixops;
- inherit dwm;
- inherit vit;
- inherit pass;
- inherit elinks;
- inherit pelican;
- inherit ldapvi;
- inherit (mylibs.yarn2nixPackage) yarn2nix;
- } // {
- inherit nix-prefetch-scripts;
- inherit nix-generate-from-cpan;
- inherit timewarrior;
- inherit pal;
- inherit pdftk;
- inherit googler;
- inherit jrnl;
- inherit apg pwgen;
- inherit newsboat;
- inherit vcsh;
- inherit xmr-stak;
- inherit urlwatch;
- inherit ranger;
- inherit irssi;
- inherit abook khard khal;
- inherit graphicsmagick;
- inherit youtube-dl;
- inherit ncmpc ncmpcpp;
- inherit cadaver;
- inherit mairix notmuch;
- inherit ctags;
- inherit s3cmd;
- inherit solc; # solidity
- inherit rtorrent;
- inherit strace;
- inherit vdirsyncer;
- inherit w3m lynx links;
- inherit gitRepo;
- inherit valgrind;
- inherit iotop iperf;
- inherit keybase;
- inherit bogofilter;
- inherit mtr;
- inherit urlview;
- inherit rr;
- inherit nix-zsh-completions;
- inherit browsh;
- inherit monero;
- inherit nextcloud-client;
- inherit feh imagemagick;
- inherit lftp;
- stgit = gitAndTools.stgit;
- inherit bundix;
- bower2nix = nodePackages.bower2nix;
- inherit firefox;
- inherit jq;
- inherit lzo unzip bzip2 p7zip xz;
- # unrar is unfree
- inherit tig;
- inherit emacs26-nox;
- inherit highlight sourceHighlight;
- pygmentize = python3Packages.pygments;
- inherit iftop htop;
- inherit fetchmail;
- inherit bc;
- inherit cpulimit;
- inherit dmenu st;
- inherit poppler_utils;
- inherit tmux;
- inherit netcat-gnu;
- inherit ledger;
- inherit ffmpeg libxslt;
- }
+{ pkgs ? import <nixpkgs> {} }:
+let
+ pkgs_ = pkgs;
+ mypkgs = import ./pkgs { pkgs = pkgs_; };
+in
+{
+ lib = import ./libs.nix { pkgs = pkgs_; };
+ overlays = import ./overlays;
+ pkgs = mypkgs;
+} // mypkgs
-{ nixpkgs }:
-with nixpkgs;
+{ pkgs }:
+with pkgs;
rec {
yarn2nixPackage = let
src = fetchFromGitHub {
makeWrapper "$f" "$out" ${toString args}
'';
+ # This adds header colors to the builds, but it rebuilds the whole
+ # world from scratch, so only use it to debug!
+ # add it as postHook in derivations
+ immaePostHook = ''
+ header() {
+ echo -ne "\033[1;36m"
+ echo -n "$1"
+ echo -e "\033[0m"
+ }
+
+ echoCmd() {
+ printf "\033[1;34m%s:\033[0m" "$1"
+ shift
+ printf ' %q' "$@"
+ echo
+ }
+ '';
+
}
--- /dev/null
+with import <nixpkgs> { overlays = builtins.attrValues (import ../overlays); };
+nixops
_module.args = {
pkgsNext = import <nixpkgsNext> {};
pkgsPrevious = import <nixpkgsPrevious> {};
- mylibs = import ../libs.nix { nixpkgs = pkgs; };
- mypkgs = import ../default.nix;
+ mylibs = import ../libs.nix { inherit pkgs; };
myconfig = {
inherit privateFiles;
env = import "${privateFiles}/environment.nix";
text =
# Make sure we’re not rebuilding whole libreoffice just because of a
# dependency
- let libreoffice = (import <nixpkgs> {}).libreoffice-fresh;
+ let libreoffice = (import <nixpkgs> { overlays = []; }).libreoffice-fresh;
in
''
{
export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops"
export NIXOPS_DEPLOYMENT="$DeploymentUuid"
source $(dirname $(dirname $DIR))/nix_path_env
-nixops="$(nix-build --no-out-link -A nixops "$(dirname $(dirname $DIR))")/bin/nixops"
+nixops="$(nix-build --no-out-link "$(dirname $DIR)/custom_nixops.nix")/bin/nixops"
TEMP=$(mktemp -d /tmp/XXXXXX-nixops-files)
chmod go-rwx $TEMP
export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops"
export NIXOPS_DEPLOYMENT="$DeploymentUuid"
source $(dirname $(dirname $DIR))/nix_path_env
-nixops="$(nix-build --no-out-link -A nixops "$(dirname $(dirname $DIR))")/bin/nixops"
+nixops="$(nix-build --no-out-link "$(dirname $DIR)/custom_nixops.nix")/bin/nixops"
export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops"
export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops"
export NIXOPS_DEPLOYMENT="$DeploymentUuid"
source $(dirname $(dirname $DIR))/nix_path_env
-nixops="$(nix-build --no-out-link -A nixops "$(dirname $(dirname $DIR))")/bin/nixops"
+nixops="$(nix-build --no-out-link "$(dirname $DIR)/custom_nixops.nix")/bin/nixops"
$nixops export | pass insert -m $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/Deployment
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $(dirname $(dirname $DIR))/nix_path_env
-nixops="$(nix-build --no-out-link -A nixops "$(dirname $(dirname $DIR))")/bin/nixops"
+nixops="$(nix-build --no-out-link "$(dirname $DIR)/custom_nixops.nix")/bin/nixops"
export NIXOPS_STATE="$(dirname $DIR)/state/eldiron.nixops"
export NIXOPS_DEPLOYMENT="$DeploymentUuid"
+++ /dev/null
-_:
-with import <nixpkgs/nixos> { configuration = {}; };
-with config.system.build;
- [ nixos-generate-config nixos-install nixos-enter manual.manpages ]
{
- mylibs = self: super: { mylibs = import ../libs.nix { nixpkgs = self; }; };
- mypkgs = import ./mypkgs.nix;
+ mylibs = self: super: { mylibs = import ../libs.nix { pkgs = self; }; };
+ mypkgs = self: super: import ../pkgs { pkgs = self; };
bitlbee = import ./bitlbee;
dwm = import ./dwm;
ympd = import ./ympd;
}
// import ./python-packages
+// import ./environments
--- /dev/null
+{
+ immae-eu = import ./immae-eu.nix;
+}
--- /dev/null
+self: super: with self;
+let
+ # https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh
+ # https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks
+ paths = [
+ # archives
+ lzo unzip bzip2 p7zip xz
+ # unrar is unfree
+
+ # backups
+ duply
+
+ # calendar/contacts
+ abook khard khal cadaver vdirsyncer pal
+
+ # computing
+ boinctui
+
+ # cryptocurrencies
+ cardano sia monero
+ xmr-stak
+ solc
+ iota-cli-app
+
+ # debugging
+ rr valgrind netcat-gnu strace
+
+ # documentations
+ unicodeDoc
+
+ # e-mails
+ muttprint mutt-ics
+ notmuch-python2 notmuch-python3 notmuch-vim
+ neomutt mairix notmuch
+ bogofilter fetchmail
+
+ # git
+ vcsh gitRepo gitAndTools.stgit tig
+
+ # graphical tools
+ nextcloud-client firefox
+ dwm dmenu st
+
+ # images
+ feh imagemagick tiv graphicsmagick
+
+ # internet browsing
+ w3m lynx links elinks browsh weboob urlview googler urlwatch
+
+ # less
+ python3Packages.pygments lesspipe highlight sourceHighlight
+
+ # monitoring
+ cnagios mtop pg_activity nagios-cli mtr
+ iftop htop iotop iperf
+ goaccess
+ # nagnu
+
+ # messaging/forums/news
+ flrn slrn
+ telegram-cli telegram-history-dump telegramircd
+ weechat profanity
+ newsboat irssi
+
+ # nix
+ mylibs.yarn2nixPackage.yarn2nix
+ nixops nix-prefetch-scripts nix-generate-from-cpan
+ nix-zsh-completions bundix nodePackages.bower2nix
+ # (nixos {}).nixos-generate-config
+ # (nixos {}).nixos-install
+ # (nixos {}).nixos-enter
+ # (nixos {}).manual.manpages
+
+ # note taking
+ note terminal-velocity jrnl
+
+ # office
+ sc-im ranger
+ genius bc
+ ledger
+ tmux
+ rtorrent
+ ldapvi
+
+ # password management
+ pass apg pwgen
+
+ # pdf
+ pdftk poppler_utils
+
+ # programming
+ pelican emacs26-nox ctags
+
+ # security
+ keybase
+
+ # todolist/time management
+ taskwarrior vit timewarrior
+
+ # video/music
+ youtube-dl ncmpc ncmpcpp ffmpeg
+
+ # other tools
+ pgloader s3cmd lftp jq cpulimit libxslt
+ ];
+in
+{
+ myEnvironments.immae-eu = buildEnv {
+ name = "immae-eu-packages";
+ inherit paths;
+ pathsToLink = [ "/bin" "/etc" "/include" "/lib" "/libexec" "/share"];
+ extraOutputsToInstall = [ "bin" "man" "doc" "info" ];
+ };
+}
-self: super: with self;
+{ pkgs }:
+with pkgs;
{
boinctui = callPackage ../pkgs/boinctui {};
cnagios = callPackage ../pkgs/cnagios {};
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $(dirname $DIR)/nix_path_env
-nix-env -r -i -A immaePackages -f "<nixpkgs>" "$@"
+nix-env -r -i -A myEnvironments.immae-eu -f "<nixpkgs>" "$@"