nixos-riscv/configuration.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2023-11-09 12:09:05 +01:00
{ lib, ... }:
2022-06-25 17:37:18 +02:00
{
imports = [
./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 = [
"virtio_blk"
];
};
# Enable ssh on boot
services.openssh.enable = true;
# Open port 19999 for Netdata
2022-06-25 17:37:18 +02: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
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
}