From f0c29e6c325c33cdb90c170ee3f4197535654306 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 16 Dec 2021 00:14:38 -0500 Subject: 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 --- users/wpcarro/nixos/installer.nix | 12 ------------ users/wpcarro/nixos/iso.nix | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 12 deletions(-) delete mode 100644 users/wpcarro/nixos/installer.nix create mode 100644 users/wpcarro/nixos/iso.nix (limited to 'users') diff --git a/users/wpcarro/nixos/installer.nix b/users/wpcarro/nixos/installer.nix deleted file mode 100644 index 0dff8ea07d13..000000000000 --- a/users/wpcarro/nixos/installer.nix +++ /dev/null @@ -1,12 +0,0 @@ -# This expression can be used to create NixOS .iso images. -{ ... }: - -{ - imports = [ - - ]; - config = { - networking.wireless.enable = true; - networking.wireless.networks."GoogleGuest" = {}; - }; -} diff --git a/users/wpcarro/nixos/iso.nix b/users/wpcarro/nixos/iso.nix new file mode 100644 index 000000000000..8102c98fb893 --- /dev/null +++ b/users/wpcarro/nixos/iso.nix @@ -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; + }; +} -- cgit 1.4.1