2023-09-16 05:08:02 +02:00
|
|
|
# Raspberry Pi SD Image
|
|
|
|
# $ nix-build '<nixpkgs/nixos>' -A config.system.build.sdImage -I nixos-config=./sd-image.nix
|
|
|
|
# https://nixos.wiki/wiki/NixOS_on_ARM#Installation
|
2023-09-16 06:31:19 +02:00
|
|
|
{ config, lib, ... }:
|
2023-09-16 05:12:58 +02:00
|
|
|
let
|
|
|
|
desktop = null;
|
|
|
|
in {
|
2023-09-16 05:08:02 +02:00
|
|
|
# Simple bootstrap SD image for the Raspberry Pi
|
|
|
|
imports = [
|
|
|
|
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>
|
|
|
|
];
|
|
|
|
|
2023-09-16 06:33:00 +02:00
|
|
|
users.users.albert = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "Albert J. Copeland";
|
|
|
|
extraGroups = [ "networkmanager" "wheel" ];
|
|
|
|
# mkpasswd -m sha-512
|
|
|
|
hashedPassword = "$y$j9T$wKLsIWaA4Gf63RvjedwLJ0$EHKL6BBJV0CAxEKcHHjaBqW085KJ/MGvmbyWzmcWOy6";
|
2023-09-16 06:33:32 +02:00
|
|
|
};
|
2023-09-16 11:03:34 +02:00
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
PermitRootLogin = "no";
|
|
|
|
PasswordAuthentication = true;
|
|
|
|
};
|
|
|
|
};
|
2023-09-16 05:08:02 +02:00
|
|
|
}
|