fix: dedicated bootstrap config

This commit is contained in:
David Arnold 2021-08-05 20:16:53 -05:00
parent 768c9b8216
commit b5da406689
No known key found for this signature in database
GPG Key ID: AB15A6AF1101390D

18
hosts/bootstrap.nix Normal file
View File

@ -0,0 +1,18 @@
{ profiles, ... }:
{
# build with: `bud build bootstrap bootstrapIso`
# reachable on the local link via ssh root@fe80::47%eno1
# where 'eno1' is replaced by your own machine's network
# interface that has the local link to the target machine
imports = [
# profiles.networking
profiles.core
profiles.users.root # make sure to configure ssh keys
profiles.users.nixos
];
boot.loader.systemd-boot.enable = true;
# will be overridden by the bootstrapIso instrumentation
fileSystems."/" = { device = "/dev/disk/by-label/nixos"; };
}