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:
parent
6d537c35c4
commit
56be97690f
14
README.md
14
README.md
@ -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
|
||||
|
@ -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 = "";
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user