Advertisement
Guest User

Untitled

a guest
Mar 26th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. # This module defines a small NixOS installation CD. It does not
  2. # contain any graphical stuff.
  3. {config, pkgs, ...}:
  4.  
  5. let
  6. otherSystem = (import (pkgs.path + "/nixos) { configuration = ./other-configuration.nix; }).system;
  7. in {
  8. imports = [
  9. <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>
  10.  
  11. # Provide an initial copy of the NixOS channel so that the user
  12. # doesn't need to run "nix-channel --update" first.
  13. <nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
  14. #<nixpkgs/nixos/system>
  15. ];
  16.  
  17. environment.systemPackages = [
  18. (pkgs.writeShellScriptBin "thing" ''
  19. nixos-install --system ${otherSystem}
  20. '')
  21. ];
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement