Advertisement
Guest User

Untitled

a guest
Mar 26th, 2020
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. {config, pkgs, ...}:
  2.  
  3. let
  4. stubSystem = (import (pkgs.path + "/nixos") { configuration = ./stub.nix; }).system;
  5. in {
  6. imports = [
  7. <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-base.nix>
  8. <nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
  9. ];
  10.  
  11. environment.systemPackages = [
  12. (pkgs.writeShellScriptBin "nixos-install-offline-stub" ''
  13. nixos-install --system ${stubSystem}
  14. '')
  15. ];
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement