fixes compilation bug

This commit is contained in:
Fabian Montero 2023-09-05 22:52:14 -06:00
parent b0713c7857
commit f32b6f7a19
Signed by: fabian
GPG key ID: 1FFAC35E1798174F

View file

@ -6,33 +6,36 @@
# Copyright (C) 2023 - Group 8 # Copyright (C) 2023 - Group 8
{ pkgs, ... }: { { pkgs, ... }: {
system.stateVersion = "23.05";
system.nixos = { system.nixos = {
distroName = "TriviOS"; distroName = "TriviOS";
variant_id = "rpi3"; variant_id = "rpi3";
}; };
system.stateVersion = "23.05"; hardware.enableRedistributableFirmware = true;
environment.systemPackages = with pkgs; [ libraspberrypi ];
networking.wireless.enable = true;
boot = { boot = {
loader.raspberryPi = { loader = {
raspberryPi = {
enable = true; enable = true;
version = 3; version = 3;
firmwareConfig = '' firmwareConfig = ''
core_freq=250 core_freq=250
''; '';
}; };
loader.grub.enable = false; grub.enable = false;
};
initrd.includeDefaultModules = false;
kernelPackages = pkgs.linuxPackages_rpi3; kernelPackages = pkgs.linuxPackages_rpi3;
kernelParams = [ kernelParams = [
"console=ttyS1,115200n8" "console=ttyS1,115200n8"
]; ];
}; };
hardware.enableRedistributableFirmware = true;
networking.wireless.enable = true;
environment.systemPackages = with pkgs; [ libraspberrypi ];
fileSystems = { fileSystems = {
"/" = { "/" = {
device = "/dev/disk/by-uuid/B007-B007"; device = "/dev/disk/by-uuid/B007-B007";
@ -40,6 +43,4 @@
options = [ "umask=027" ]; options = [ "umask=027" ];
}; };
}; };
} }