nixos-riscv/configuration.nix

43 lines
757 B
Nix

{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
"${modulesPath}/profiles/base.nix"
];
networking.hostName = "visionfive-nix";
# boot = {
# loader = {
# grub.enable = false;
# generic-extlinux-compatible.enable = true;
# };
# };
nixpkgs.overlays = [ (import ./overlay.nix) ];
# Enable ssh on boot
services.openssh.enable = true;
system.stateVersion = "24.05";
boot.kernelPackages = lib.mkForce pkgs.linuxPackagesCustom;
boot.kernelParams = [
"console=ttyS0,115200"
"console=tty1"
];
users = {
users.default = {
password = "visionfive-nix";
isNormalUser = true;
extraGroups = [
"wheel"
];
};
};
environment.systemPackages = with pkgs; [ gdb ];
}