mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-09 19:38:30 +08:00
mnt/reform: init
This commit is contained in:
48
mnt/reform/rk3588/README.md
Normal file
48
mnt/reform/rk3588/README.md
Normal file
@@ -0,0 +1,48 @@
|
||||
# MNT Reform Laptop with RK3588 CPU module
|
||||
|
||||
## Creating an installer SD-Image
|
||||
|
||||
Create and configure the `flake.nix` file:
|
||||
``` nix
|
||||
{
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
inputs.nixos-hardware.url = "github:nixos/nixos-hardware";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, nixos-hardware, flake-utils, ... }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
rec {
|
||||
packages.default = packages.installer;
|
||||
packages.installer = (import "${nixpkgs}/nixos" {
|
||||
configuration =
|
||||
{ config, ... }: {
|
||||
imports = [
|
||||
"${nixos-hardware}/mnt/reform/rk3588/installer.nix"
|
||||
];
|
||||
|
||||
# If you want to use ssh set a password
|
||||
# users.users.nixos.password = "super secure password";
|
||||
# OR add your public ssh key
|
||||
# users.users.nixos.openssh.authorizedKeys.keys = [ "ssh-rsa ..." ];
|
||||
|
||||
# Additional configuration goes here
|
||||
|
||||
# Only used when cross compiling
|
||||
nixpkgs.crossSystem = {
|
||||
config = "aarch64-unknown-linux-gnu";
|
||||
system = "aarch64-linux";
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
};
|
||||
inherit system;
|
||||
}).config.system.build.image;;
|
||||
});
|
||||
}
|
||||
```
|
||||
|
||||
Build the installer image.
|
||||
|
||||
``` sh
|
||||
nix build .#
|
||||
```
|
||||
Reference in New Issue
Block a user