nixos-riscv/configuration.nix

45 lines
802 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"
];
services.getty.autologinUser = "default";
users = {
users.default = {
password = "visionfive-nix";
isNormalUser = true;
extraGroups = [
"wheel"
];
};
};
environment.systemPackages = with pkgs; [ gdb ];
}