diff options
author | William Carroll <wpcarro@gmail.com> | 2021-12-16T05·14-0500 |
---|---|---|
committer | wpcarro <wpcarro@gmail.com> | 2021-12-16T22·07+0000 |
commit | f0c29e6c325c33cdb90c170ee3f4197535654306 (patch) | |
tree | fb99616420c9a7637c6e2ba44a70eaacd88d00ea /users | |
parent | 305d813a2b118c2fa27f4a710b2abca03ac21fe9 (diff) |
refactor(wpcarro/nixos): Rename installer -> iso r/3279
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>
Diffstat (limited to 'users')
-rw-r--r-- | users/wpcarro/nixos/installer.nix | 12 | ||||
-rw-r--r-- | users/wpcarro/nixos/iso.nix | 17 |
2 files changed, 17 insertions, 12 deletions
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 = [ - <nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix> - ]; - 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; + }; +} |