-
Notifications
You must be signed in to change notification settings - Fork 2
/
sd-image-kevin.nix
32 lines (24 loc) · 938 Bytes
/
sd-image-kevin.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, ... }:
{
imports = [
<nixpkgs/nixos/modules/profiles/base.nix>
<nixpkgs/nixos/modules/profiles/installation-device.nix>
./sd-image-depthcharge.nix
./modules
./channel.nix
];
assertions = lib.singleton {
assertion = pkgs.stdenv.system == "aarch64-linux";
message = "sd-image-aarch64.nix can be only built natively on Aarch64 / ARM64; " +
"it cannot be cross compiled";
};
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_gru_4_4;
sdImage.kpart = "${config.system.build.toplevel}/kpart";
sdImage.storePaths = [ config.system.build.toplevel ];
# dev config?
boot.loader.grub.enable = false;
boot.kernelParams = [ "console=tty1" ];
hardware.kevin.console-font.fontfile =
"${pkgs.source-code-pro}/share/fonts/opentype/SourceCodePro-Regular.otf";
boot.supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
}