Disable OpenSSH in Lagarto Hun
This commit is contained in:
parent
bf767d623b
commit
29e40eb4e4
@ -12,9 +12,6 @@
|
||||
|
||||
networking.hostName = "nixos-riscv";
|
||||
|
||||
# Enable ssh on boot
|
||||
services.openssh.enable = true;
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
|
||||
services.getty.autologinUser = "test";
|
||||
|
@ -5,5 +5,8 @@ set -e
|
||||
|
||||
source ./env.sh
|
||||
|
||||
./fpgactl -b opensbi.bin -k kernel.bin -i initrd.bin
|
||||
#bitstream="-w system-acme_ea-4h2v.bit"
|
||||
|
||||
./fpgactl $bitstream -b opensbi.bin -k kernel.bin -i initrd.bin -r rootfs.img
|
||||
|
||||
picocom -b 115200 /dev/ttyUSB2
|
||||
|
@ -47,6 +47,16 @@
|
||||
};
|
||||
};
|
||||
|
||||
# No network
|
||||
services.openssh.enable = false;
|
||||
|
||||
# Run getty on /dev/console and restartt until it works
|
||||
systemd.services."serial-getty@console" = {
|
||||
enable = true;
|
||||
wantedBy = [ "getty.target" ]; # to start at boot
|
||||
serviceConfig.Restart = "always";
|
||||
};
|
||||
|
||||
sdImage = {
|
||||
# The image will be loaded as-is in memory, so no compression
|
||||
compressImage = false;
|
||||
|
Loading…
Reference in New Issue
Block a user