2024-05-13 18:59:00 +02:00
|
|
|
{ config, lib, pkgs, modulesPath, self, ... }:
|
2024-01-18 15:59:51 +01:00
|
|
|
|
2022-06-25 17:37:18 +02:00
|
|
|
{
|
2024-01-18 15:59:51 +01:00
|
|
|
imports = [
|
2024-03-07 12:03:02 +01:00
|
|
|
#"${modulesPath}/profiles/base.nix"
|
2024-09-18 18:13:39 +02:00
|
|
|
"${modulesPath}/profiles/minimal.nix"
|
2024-01-18 15:59:51 +01:00
|
|
|
];
|
|
|
|
|
2024-05-28 18:12:14 +02:00
|
|
|
nixpkgs = {
|
|
|
|
crossSystem = {
|
|
|
|
system = "riscv64-linux";
|
|
|
|
};
|
2024-01-24 12:50:41 +01:00
|
|
|
|
2024-05-28 18:12:14 +02:00
|
|
|
overlays = [
|
|
|
|
self.inputs.bscpkgs.bscOverlay
|
|
|
|
(import ./overlay.nix)
|
|
|
|
];
|
|
|
|
|
|
|
|
config.allowUnsupportedSystem = true;
|
|
|
|
};
|
2024-05-13 18:59:00 +02:00
|
|
|
|
2024-01-24 12:31:58 +01:00
|
|
|
networking.hostName = "nixos-riscv";
|
2023-02-16 11:37:41 +01:00
|
|
|
|
2024-01-18 15:59:51 +01:00
|
|
|
system.stateVersion = "24.05";
|
2024-01-19 12:32:06 +01:00
|
|
|
|
2024-01-24 12:31:58 +01:00
|
|
|
services.getty.autologinUser = "test";
|
2024-01-24 09:58:41 +01:00
|
|
|
|
2024-01-19 13:43:32 +01:00
|
|
|
users = {
|
2024-01-24 12:31:58 +01:00
|
|
|
users.test = {
|
|
|
|
password = "test";
|
2024-01-19 13:43:32 +01:00
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"wheel"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-01-22 16:05:38 +01:00
|
|
|
|
2024-03-07 12:03:02 +01:00
|
|
|
#environment.systemPackages = with pkgs; [ vim gdb neofetch gcc bintools ];
|
2024-09-19 14:18:30 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
rvb riscv-tools
|
|
|
|
config.boot.kernelPackages.perf
|
|
|
|
];
|
2024-09-18 16:34:17 +02:00
|
|
|
|
|
|
|
services.getty.helpLine = ''
|
|
|
|
|
|
|
|
|
|
|
|
__________________
|
|
|
|
< Welcome to NixOS >
|
|
|
|
------------------
|
|
|
|
\ ^__^
|
|
|
|
\ (oo)\_______
|
|
|
|
(__)\ )\/\
|
|
|
|
||----w |
|
|
|
|
|| ||
|
|
|
|
|
|
|
|
|
|
|
|
If you can read this message then then you have
|
|
|
|
successfully booted NixOS into the login shell.
|
|
|
|
|
|
|
|
|
|
|
|
'';
|
2022-06-25 17:37:18 +02:00
|
|
|
}
|