README.md: expand on quick setup details

This commit is contained in:
Timothy DeHerrera 2020-01-07 13:04:32 -07:00
parent 6d537c35c4
commit 56be97690f
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
3 changed files with 25 additions and 3 deletions

View file

@ -20,7 +20,19 @@ git checkout -b $new_branch template
# generate hardware config
nixos-generate-config --show-hardware-config > ./hosts/${new_host}.nix
# ensure configuration lives in expected location
# Edit the new file, removing `not-deteced.nix` from the imports.
# In order to maintain purity flakes cannot resolve from the NIX_PATH.
# You may also want to import ./hosts/NixOS.nix from here which sets up
# an efi bootloader, enables Network Manager and sets an empty root password.
# Otherwise you'll need to set the bootloader, network and password yourself.
# Also ensure your file systems are set the way you want. And import
# any ./profiles you may wish to try out.
$EDITOR ./hosts/${new_host}.nix
# backup existing config and ensure configuration lives in expected location
mv /etc/nixos /etc/nixos.old
ln -s $PWD /etc/nixos
# a flake is vcs based, so only git aware files are bundled

View file

@ -1 +1,10 @@
{ imports = [ ../profiles/develop ]; }
{
imports = [ ];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.networkmanager.enable = true;
users.users.root.password = "";
}

View file

@ -1,5 +1,6 @@
{ modulesPath, ... }: {
imports = [ ./NixOS.nix "${modulesPath}/installer/cd-dvd/iso-image.nix" ];
imports =
[ ../profiles/develop "${modulesPath}/installer/cd-dvd/iso-image.nix" ];
isoImage.makeEfiBootable = true;
isoImage.makeUsbBootable = true;