From 30f52e747991a374c4f056765929ab9922cf9983 Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Tue, 5 Sep 2023 17:14:14 +0100 Subject: [PATCH] Cleanup pi nix image --- pi-imgs/pi-initial.nix | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pi-imgs/pi-initial.nix b/pi-imgs/pi-initial.nix index 668b20e..3ed1a37 100644 --- a/pi-imgs/pi-initial.nix +++ b/pi-imgs/pi-initial.nix @@ -1,18 +1,9 @@ { lib, pkgs, ... }: { - imports = [ - - ]; - users.users.root.openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILIztwQxt+jqroFONSgq+xzPMuE2I5Dq/zWPQ8RcTYJr gabriel@gitgalaxy.com" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILIztwQxt+jqroFONSgq+xzPMuE2I5Dq/zWPQ8RcTYJr gabriel@gitgalaxy.com" ]; - # bzip2 compression takes loads of time with emulation, skip it. sdImage.compressImage = false; - # OpenSSH is forced to have an empty `wantedBy` on the installer system[1], this won't allow it - # to be started. Override it with the normal value. - # [1] https://github.com/NixOS/nixpkgs/blob/9e5aa25/nixos/modules/profiles/installation-device.nix#L76 systemd.services.openssh.wantedBy = lib.mkOverride 40 [ "multi-user.target" ]; - # Enable OpenSSH out of the box. services.openssh.enable = true; environment.systemPackages = with pkgs; [