-
-
Save infinisil/244a746fef613d25694c81f08248f0d5 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
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