Steps to reproduce
1:
cat ./custom.nix
{ config, lib, pkgs, ... }:
{
imports = [ ./modules/installer/cd-dvd/installation-cd-base.nix ];
users.extraUsers.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAA... sorcus@laptop" ];
systemd.network.enable = true;
systemd.network.networks.wired.name = "enp0s3";
systemd.network.networks.wired.address = [ "2a01:***:***::13/64" ];
systemd.network.networks.wired.gateway = [ "fe80::1" ];
services.openssh.enable = true;
}
2:
nix-build -A config.system.build.isoImage -I nixos-config=./custom.nix ./default.nix
3:
Create virtual machine and run with nixos iso. SSH Daemon doesn't work. It's loaded, but not active.
4:
But it's working with services.openssh.startWhenNeeded = true; ... and show this warnings:
Jun 22 21:19:09 nixos systemd[1]: sshd.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Jun 22 21:07:44 nixos systemd[1]: Started Session 3 of user root.
Jun 22 21:07:50 nixos systemd[1]: sshd.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Technical details
- System: 17.09.git.c89efa3 (Hummingbird)
- Nix version: nix-env (Nix) 1.11.11
- Nixpkgs version: 17.09.git.c89efa3
- Sandboxing enabled: build-use-sandbox = false
Steps to reproduce
1:
cat ./custom.nix2:
nix-build -A config.system.build.isoImage -I nixos-config=./custom.nix ./default.nix3:
Create virtual machine and run with nixos iso. SSH Daemon doesn't work. It's loaded, but not active.
4:
But it's working with
services.openssh.startWhenNeeded = true;... and show this warnings:Technical details