Cleanup pi nix image
Some checks failed
Lint / lint (push) Successful in 19s
Build Pi NixOS Image / sync (push) Failing after 42s

This commit is contained in:
Gabriel Simmer 2023-09-05 17:14:14 +01:00
parent 8109cc44d0
commit 30f52e7479
Signed by: arch
SSH key fingerprint: SHA256:m3OEcdtrnBpMX+2BDGh/byv3hrCekCLzDYMdvGEKPPQ

View file

@ -1,18 +1,9 @@
{ lib, pkgs, ... }: {
imports = [
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64-installer.nix>
];
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; [