forked from ealasu/nixos-nanopi-r4se
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbaseline.nix
32 lines (25 loc) · 838 Bytes
/
baseline.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ config, lib, pkgs, ... }:
{
hardware.enableRedistributableFirmware = true;
boot.loader = {
grub.enable = false;
};
boot.consoleLogLevel = lib.mkDefault 7;
boot.kernelParams = ["cma=32M" "console=ttyS2,115200n8" "console=ttyACM0,115200n8" "console=tty0"];
# building with emulation
nixpkgs.system = "aarch64-linux";
# compression takes loads of time with emulation, skip it.
sdImage.compressImage = false;
# Enable OpenSSH
services.sshd.enable = true;
# root autologin etc
users.users.root.password = "root";
services.openssh.permitRootLogin = lib.mkDefault "yes";
# ??
#services.mingetty.autologinUser = lib.mkDefault "root";
services.getty.autologinUser = lib.mkDefault "root";
#users.extraUsers.root.openssh.authorizedKeys.keys = [
# ""
#];
networking.firewall.enable = false;
}