Last active
December 18, 2018 16:40
-
-
Save bbarker/1882c3200f53b375529c8da185d415c5 to your computer and use it in GitHub Desktop.
Imperative nixos container with autostart - how?
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
{ | |
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