nixos-riscv/configuration.nix

42 lines
750 B
Nix
Raw Normal View History

2024-01-18 15:59:51 +01:00
{ config, lib, pkgs, modulesPath, ... }:
2022-06-25 17:37:18 +02:00
{
2024-01-18 15:59:51 +01:00
imports = [
"${modulesPath}/profiles/base.nix"
];
nixpkgs.crossSystem = {
system = "riscv64-linux";
};
2024-01-24 12:31:58 +01:00
networking.hostName = "nixos-riscv";
2024-01-17 18:22:30 +01:00
nixpkgs.overlays = [ (import ./overlay.nix) ];
# Enable ssh on boot
services.openssh.enable = true;
2024-01-18 15:59:51 +01:00
system.stateVersion = "24.05";
2024-01-19 12:32:06 +01:00
boot.kernelPackages = lib.mkForce pkgs.linuxPackagesCustom;
boot.kernelParams = [
"console=ttyS0,115200"
"console=tty1"
];
2024-01-24 12:31:58 +01:00
services.getty.autologinUser = "test";
2024-01-24 09:58:41 +01:00
users = {
2024-01-24 12:31:58 +01:00
users.test = {
password = "test";
isNormalUser = true;
extraGroups = [
"wheel"
];
};
};
2024-01-22 16:05:38 +01:00
2024-01-25 15:38:22 +01:00
environment.systemPackages = with pkgs; [ vim gdb neofetch gcc bintools ];
2022-06-25 17:37:18 +02:00
}