Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created April 3, 2018 20:05
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 LnL7/3c2337879313b1b0526ec7da4ab7b2c8 to your computer and use it in GitHub Desktop.
Save LnL7/3c2337879313b1b0526ec7da4ab7b2c8 to your computer and use it in GitHub Desktop.
iso configuration
#!/usr/bin/env bash
nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=configuration.nix
{ config, lib, pkgs, ... }:
{
imports = [ <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix> ];
services.openssh.enable = true;
# ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment