Skip to content

Instantly share code, notes, and snippets.

@infinisil
Created October 19, 2017 12:33
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 infinisil/244a746fef613d25694c81f08248f0d5 to your computer and use it in GitHub Desktop.
Save infinisil/244a746fef613d25694c81f08248f0d5 to your computer and use it in GitHub Desktop.
nixPath = [
# Ruin the config so we don't accidentally run
# nixos-rebuild switch on the host (thanks grahamc!)
"nixos-config=${pkgs.writeText "configuration.nix" ''
throw "Hey dummy, you're on your server! Use NixOps!"
''}"
"nixpkgs=/run/current-system/nixpkgs"
];
};
system.extraSystemBuilderCmds = ''
ln -sv ${lib.cleanSource pkgs.path} $out/nixpkgs
'';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment