53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{ lib, ... }:
|
|
{
|
|
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";
|
|
|
|
boot = {
|
|
kernelParams = [ "boot.shell_on_fail" ];
|
|
consoleLogLevel = lib.mkDefault 7;
|
|
initrd.kernelModules = [
|
|
"virtio_pci"
|
|
"virtio_blk"
|
|
"virtio_input"
|
|
"9pnet"
|
|
"9pnet_virtio"
|
|
];
|
|
};
|
|
|
|
# Enable ssh on boot
|
|
services.openssh.enable = true;
|
|
|
|
# Open port 19999 for Netdata
|
|
#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;
|
|
# };
|
|
#};
|
|
}
|