24 lines
No EOL
761 B
Nix
24 lines
No EOL
761 B
Nix
# 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
|
|
{ config, lib, ... }:
|
|
let
|
|
desktop = null;
|
|
in {
|
|
# Simple bootstrap SD image for the Raspberry Pi
|
|
imports = [
|
|
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>
|
|
];
|
|
|
|
# Temporarily allow ssh access for imaging
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
|
|
|
# User for ssh
|
|
# Define a user account.
|
|
users.users.albert = {
|
|
isNormalUser = true;
|
|
description = "Albert J. Copeland";
|
|
extraGroups = [ "networkmanager" "wheel" ];
|
|
# mkpasswd -m sha-512
|
|
hashedPassword = "$y$j9T$wKLsIWaA4Gf63RvjedwLJ0$EHKL6BBJV0CAxEKcHHjaBqW085KJ/MGvmbyWzmcWOy6";
|
|
} |