Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This module defines a small NixOS installation CD. It does not
- # contain any graphical stuff.
- {config, pkgs, ...}:
- let
- otherSystem = (import (pkgs.path + "/nixos) { configuration = ./other-configuration.nix; }).system;
- in {
- imports = [
- <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>
- # Provide an initial copy of the NixOS channel so that the user
- # doesn't need to run "nix-channel --update" first.
- <nixpkgs/nixos/modules/installer/cd-dvd/channel.nix>
- #<nixpkgs/nixos/system>
- ];
- environment.systemPackages = [
- (pkgs.writeShellScriptBin "thing" ''
- nixos-install --system ${otherSystem}
- '')
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement