From 86d912266a79bd630897922be5c7d1da9022c8e9 Mon Sep 17 00:00:00 2001 From: truxnell <19149206+truxnell@users.noreply.github.com> Date: Thu, 21 Mar 2024 09:15:51 +1100 Subject: [PATCH] feat: add few pkgs --- nixos/hosts/images/sd-image/default.nix | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/nixos/hosts/images/sd-image/default.nix b/nixos/hosts/images/sd-image/default.nix index d101671..efea0be 100644 --- a/nixos/hosts/images/sd-image/default.nix +++ b/nixos/hosts/images/sd-image/default.nix @@ -44,6 +44,12 @@ environment.systemPackages = with pkgs; [ libraspberrypi raspberrypi-eeprom + ssh-to-age + vi + git + curl + wget + dnsutils ]; networking = { @@ -53,6 +59,17 @@ }; services.openssh.enable = true; + # Define a user account. Don't forget to set a password with ‘passwd’. + users.users.truxnell = { + isNormalUser = true; + extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. + packages = with pkgs; [ + ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMZS9J1ydflZ4iJdJgO8+vnN8nNSlEwyn9tbWU9OcysW truxnell@home" + ]; + }; + # Free up to 1GiB whenever there is less than 100MiB left. nix.extraOptions = '' min-free = ${toString (100 * 1024 * 1024)} @@ -60,9 +77,6 @@ ''; nixpkgs.hostPlatform = "aarch64-linux"; - users.users.root.openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMZS9J1ydflZ4iJdJgO8+vnN8nNSlEwyn9tbWU9OcysW truxnell@home" - ]; system.stateVersion = "23.11"; }