Skip to content

Instantly share code, notes, and snippets.

@superherointj
Created September 9, 2020 13:43
Show Gist options
  • Save superherointj/fa478aba365245ef87d7400892a88e2f to your computer and use it in GitHub Desktop.
Save superherointj/fa478aba365245ef87d7400892a88e2f to your computer and use it in GitHub Desktop.
Libvirtd in NixOS @ RockPro64 triggers kernel panic
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "k3";
networking.extraHosts = "192.168.20.3 k3";
networking.useDHCP = false;
systemd.network = {
enable = true;
networks = {
eth0 = {
enable = true;
name = "eth0";
address = ["192.168.20.3/24"];
gateway = ["192.168.20.254"];
dns = ["8.8.8.8"];
ntp = ["a.ntp.br"];
#networkConfig = {
# "IPForward" = true;
#};
};
};
};
services.resolved = {
enable = true;
dnssec = "false";
fallbackDns = ["8.8.8.8"];
};
i18n.defaultLocale = "pt_BR.UTF-8";
i18n.supportedLocales = [ "en_US.UTF-8/UTF-8" "pt_BR.UTF-8/UTF-8" ];
console = {
font = "Lat2-Terminus16";
keyMap = "us-acentos";
};
time.timeZone = "America/Sao_Paulo";
environment.systemPackages = with pkgs; [
wget vim git rxvt_unicode.terminfo
];
virtualisation.libvirtd.enable = true;
services.openssh.enable = true;
networking.firewall.enable = false;
users.mutableUsers = false;
users.users.intj = {
isNormalUser = true;
extraGroups = [ "wheel" ];
hashedPassword = "[edited]";
openssh.authorizedKeys.keys = [ "ssh-rsa [edited]" ];
};
system.stateVersion = "unstable";
system.autoUpgrade.enable = true;
system.autoUpgrade.channel = "https://nixos.org/channels/nixos-unstable";
nix.gc.automatic = true;
nix.gc.dates = "02:15";
nix.gc.options = "--delete-older-than 30d";
boot.cleanTmpDir = true;
}
{ config, lib, pkgs, ... }:
{
imports =
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [ "usbhid" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4";
};
swapDevices = [ ];
nix.maxJobs = lib.mkDefault 6;
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
}
Kernel panic image is shown bellow:
(Just visit the link!)
https://photos.google.com/share/AF1QipPJiwAbGLEUcW_D9SBcQU1aNGC5fvuS0sw0OEK-kk1Sui9O0l0iW4rRl1gPLGjypQ?key=Zk15WC1od1dpNHluaW1fOU9YY3JhZHQzTG55bVVn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment