Skip to content

Instantly share code, notes, and snippets.

@bbarker
Last active December 18, 2018 16:40
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 bbarker/1882c3200f53b375529c8da185d415c5 to your computer and use it in GitHub Desktop.
Save bbarker/1882c3200f53b375529c8da185d415c5 to your computer and use it in GitHub Desktop.
Imperative nixos container with autostart - how?
{
autoStart = true;
config = { config, pkgs, ... }: {
environment.systemPackages = with pkgs; [
# Shells:
bash
# For OpenMPI:
binutils
gfortran
openmpi
];
system.activationScripts = {
text = ''
ln -sfn /run/current-system/sw/bin/bash /bin/bash
ln -sfn /run/current-system/sw/bin/mpi* /bin/
'';
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment