From 1641ade4b208b6cdb0734f7e4b5e18140b097038 Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Thu, 11 Jul 2024 12:08:32 +0200 Subject: [PATCH] Fix --- hosts/janeway/default.nix | 8 ++++++-- hosts/module.nix | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hosts/janeway/default.nix b/hosts/janeway/default.nix index 54c0975..7e21e1a 100644 --- a/hosts/janeway/default.nix +++ b/hosts/janeway/default.nix @@ -23,9 +23,13 @@ in { # Set your time zone time.timeZone = "Europe/Rome"; - build.activation.sshd = '' + build.activation.sshd = let + hosts = (builtins.import ../../lib).keys.hosts; + in '' $DRY_RUN_CMD mkdir $VERBOSE_ARG --parents "${config.user.home}/.ssh" - $DRY_RUN_CMD cat ${pathToPubKey} > "${config.user.home}/.ssh/authorized_keys" + $DRY_RUN_CMD echo ${hosts.picard} > "${config.user.home}/.ssh/authorized_keys" + $DRY_RUN_CMD echo ${hosts.sisko} >> "${config.user.home}/.ssh/authorized_keys" + $DRY_RUN_CMD echo ${hosts.kirk} >> "${config.user.home}/.ssh/authorized_keys" if [[ ! -d "${sshdDirectory}" ]]; then $DRY_RUN_CMD rm $VERBOSE_ARG --recursive --force "${sshdTmpDirectory}" diff --git a/hosts/module.nix b/hosts/module.nix index 9f3f4b0..3c26ae6 100644 --- a/hosts/module.nix +++ b/hosts/module.nix @@ -291,6 +291,7 @@ in { internal = true; default = hostname: config: inputs.nix-on-droid.lib.nixOnDroidConfiguration { + pkgs = inputs.nixpkgsUnstable.legacyPackages.aarch64-linux; modules = [ ({ lib, @@ -298,6 +299,7 @@ in { ... }: { nixpkgs.overlays = config.overlays; + _module.args.fleetFlake = self; }) "${self.outPath}/hosts/${hostname}" ];