Skip to content

Instantly share code, notes, and snippets.

@ixxie
Last active March 10, 2021 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ixxie/0cabb5ebd536b599228c5008bb97f3b9 to your computer and use it in GitHub Desktop.
Save ixxie/0cabb5ebd536b599228c5008bb97f3b9 to your computer and use it in GitHub Desktop.
Raspberry Pi image building
{ ... }: {
imports = [
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>
./users.nix
];
sdImage = {
imageName = "magicbox-sd";
firmwareSize = 256;
};
}
{ config, pkgs, lib, ... }:
{
users.users = {
ixxie = {
home = "/home/ixxie";
extraGroups = [ "wheel" "networkmanager" ];
isNormalUser = true;
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOm2JiPs6geaZ+coOju+kpUIbaJkLOnydTGcPc+K4V5ksqkqDW2i2fPjZdV3U8Eihv+wUmyYkj5SU+Q75JYy1/0oKwWQi2SX9EqrSsK/JOryex8FmqwhKwm7+afrryILCOJyhhNGeKOm04stxY50UDSrCmOSpyX15PZnMPB6BRuWdiWi3jvGwja2+lFwtKlIJuYooBFCAE7R7buqHgduhvtoLWTh8sLRiKDo9vP7s63qyXmvCx7tY06lSD3V65rRBd6SjA8mqHQZN9RL0RgJry65HVMIE2BapniLeUJi2L32hvttstvkj2PMA0Obm+bxlimKSSXZkTRPoxC/p3tWy7 ixxie@meso"
];
password = "xyz";
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment