nixos-riscv/configuration.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

2023-11-09 12:09:05 +01:00
{ lib, ... }:
2022-06-25 17:37:18 +02:00
{
imports = [
2023-11-29 10:48:59 +01:00
#./examples/launchCageOnBoot.nix
];
# networking = {
# interfaces."wlan0".useDHCP = true;
# wireless = {
# interfaces = [ "wlan0" ];
# enable = true;
# networks = {
# myWifiNetworkSSID.pskRaw = "29f4be0s82e33c18149cdcfc869f84ce6a8831fb492e35d759468f6103bf8a31"; # pskRaw is the result of running wpa_passphrase 'SSID' 'PASSWORD'
# WIFI_SSID.psk = "WIFI_PASSWORD";
# };
# };
# };
networking.hostName = "visionfive-nix";
2023-11-09 12:09:05 +01:00
boot = {
kernelParams = [ "boot.shell_on_fail" ];
consoleLogLevel = lib.mkDefault 7;
initrd.kernelModules = [
2023-11-29 10:48:59 +01:00
"virtio_pci"
2023-11-09 12:09:05 +01:00
"virtio_blk"
2023-11-29 10:48:59 +01:00
"virtio_input"
"9pnet"
"9pnet_virtio"
2023-11-09 12:09:05 +01:00
];
};
# Enable ssh on boot
services.openssh.enable = true;
# Open port 19999 for Netdata
2023-11-29 10:48:59 +01:00
#networking.firewall.allowedTCPPorts = [ 19999 ];
#services.netdata.enable = true;
# Enable Avahi mDNS, you should be able to reach http://visionfive-nix:19999
# to reach netdata when booted
2023-11-29 10:48:59 +01:00
#services.avahi = {
# openFirewall = true;
# nssmdns = true; # Allows software to use Avahi to resolve.
# enable = true;
# publish = {
# enable = true;
# addresses = true;
# workstation = true;
# };
#};
2022-06-25 17:37:18 +02:00
}