2023-11-09 12:09:05 +01:00
{ lib , . . . }:
2022-06-25 17:37:18 +02:00
{
2022-07-13 08:45:40 +02:00
imports = [
2023-11-29 10:48:59 +01:00
#./examples/launchCageOnBoot.nix
2022-07-13 08:45:40 +02:00
] ;
2022-07-13 08:43:23 +02:00
# 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";
# };
# };
# };
2022-07-13 08:41:39 +02:00
networking . hostName = " v i s i o n f i v e - n i x " ;
2023-11-09 12:09:05 +01:00
boot = {
kernelParams = [ " b o o t . s h e l l _ o n _ f a i l " ] ;
consoleLogLevel = lib . mkDefault 7 ;
initrd . kernelModules = [
2023-11-29 10:48:59 +01:00
" v i r t i o _ p c i "
2023-11-09 12:09:05 +01:00
" v i r t i o _ b l k "
2023-11-29 10:48:59 +01:00
" v i r t i o _ i n p u t "
" 9 p n e t "
" 9 p n e t _ v i r t i o "
2023-11-09 12:09:05 +01:00
] ;
} ;
2023-02-16 11:37:41 +01:00
2022-07-13 08:40:23 +02:00
# Enable ssh on boot
services . openssh . enable = true ;
2022-07-13 08:41:39 +02:00
# Open port 19999 for Netdata
2023-11-29 10:48:59 +01:00
#networking.firewall.allowedTCPPorts = [ 19999 ];
#services.netdata.enable = true;
2022-07-13 08:41:39 +02:00
# 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
}