1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-29 03:21:21 +03:00

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 # generate hardware config
nixos-generate-config --show-hardware-config > ./hosts/${new_host}.nix 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 ln -s $PWD /etc/nixos
# a flake is vcs based, so only git aware files are bundled # 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, ... }: { { 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.makeEfiBootable = true;
isoImage.makeUsbBootable = true; isoImage.makeUsbBootable = true;