41 lines
769 B
Nix
41 lines
769 B
Nix
{ config, lib, pkgs, modulesPath, self, ... }:
|
|
|
|
{
|
|
imports = [
|
|
#"${modulesPath}/profiles/base.nix"
|
|
#"${modulesPath}/profiles/minimal.nix"
|
|
];
|
|
|
|
nixpkgs = {
|
|
crossSystem = {
|
|
system = "riscv64-linux";
|
|
};
|
|
|
|
overlays = [
|
|
self.inputs.bscpkgs.bscOverlay
|
|
(import ./overlay.nix)
|
|
];
|
|
|
|
config.allowUnsupportedSystem = true;
|
|
};
|
|
|
|
networking.hostName = "nixos-riscv";
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
services.getty.autologinUser = "test";
|
|
|
|
users = {
|
|
users.test = {
|
|
password = "test";
|
|
isNormalUser = true;
|
|
extraGroups = [
|
|
"wheel"
|
|
];
|
|
};
|
|
};
|
|
|
|
#environment.systemPackages = with pkgs; [ vim gdb neofetch gcc bintools ];
|
|
#environment.systemPackages = with pkgs; [ rvb riscv-tools ];
|
|
}
|