/ hosts / bootstrap.nix
bootstrap.nix
 1  { profiles, ... }:
 2  {
 3    # build with: `bud build bootstrap bootstrapIso`
 4    # reachable on the local link via ssh root@fe80::47%eno1
 5    # where 'eno1' is replaced by your own machine's network
 6    # interface that has the local link to the target machine
 7    imports = [
 8      # profiles.networking
 9      profiles.core
10      profiles.users.root # make sure to configure ssh keys
11      profiles.users.nixos
12    ];
13  
14    boot.loader.systemd-boot.enable = true;
15  
16    # will be overridden by the bootstrapIso instrumentation
17    fileSystems."/" = { device = "/dev/disk/by-label/nixos"; };
18  }