<sonnenbloom>
hello! i installed NixOS 18.09 on a raspberry pi 3. works ok so far, could use more RAM. ,)
<gchristensen>
nice!
<sonnenbloom>
problem is sshd does not start up during boot. config.services.openssh.enable evaluates to true in the repl.
<sonnenbloom>
i can start it on the console with systemctl.
<sonnenbloom>
i don't know much about about the nix bootstrap and systemd yet. where can i start to debug this?
<samueldr>
if you're including `<nixos/modules/installer/cd-dvd/sd-image-aarch64.nix>`, it ends up including `installation-device.nix` which in turn stops ssh from starting by default
<sonnenbloom>
the suggested fix -- systemd.services.sshd.wantedBy = lib.mkOverride 40 [ "multi-user.target" ]; -- does not work for me, though, results in "error: undefined variable 'lib' at /root/homemate/etc/nixos/configuration.nix:13:36"
<samueldr>
you would need to add lib to the parameters on top of the file, { /*...*/, lib, ... }
<samueldr>
(assuming it isn't there)
<samueldr>
though, in reality, you may be better served by *not* including that file, as it is used for the installation media
<samueldr>
(which as you can see, imports `installation-device.nix`, which is the one disabling sshd)
<sonnenbloom>
the fix with mkOverride did work. i will look into it. thanks!
<sonnenbloom>
<nixpkgs/nixos/modules/installer/cd-dvd/sd-image-aarch64.nix> -- how can i evaluate that on the shell to the name of the currently active file?