refactor(wpcarro/nixos): Rename installer -> iso
Right now this is just a sketch for a larger idea of writing a binary called `create-installer` (see docs). Change-Id: Ib8e2acfd5d350ccc344329d87983c415f166d02b Reviewed-on: https://cl.tvl.fyi/c/depot/+/4358 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com>
This commit is contained in:
parent
305d813a2b
commit
f0c29e6c32
2 changed files with 17 additions and 12 deletions
|
@ -1,12 +0,0 @@
|
||||||
# This expression can be used to create NixOS .iso images.
|
|
||||||
{ ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix>
|
|
||||||
];
|
|
||||||
config = {
|
|
||||||
networking.wireless.enable = true;
|
|
||||||
networking.wireless.networks."GoogleGuest" = {};
|
|
||||||
};
|
|
||||||
}
|
|
17
users/wpcarro/nixos/iso.nix
Normal file
17
users/wpcarro/nixos/iso.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# TODO(wpcarro): Support the workflow outlined in these docs.
|
||||||
|
#
|
||||||
|
# Usage:
|
||||||
|
# $ lsblk # get your USB dev path (e.g. /dev/sdb)
|
||||||
|
# $ create-installer --dev=/dev/sdb //users/wpcarro/nixos/marcus
|
||||||
|
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
"${pkgs.nixos}/modules/installer/cd-graphical-gnome.nix"
|
||||||
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
networking.wireless.enable = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue