Skip to content

Commit

Permalink
akamanto: _rpi3 kernel supposedly not needed anymore
Browse files Browse the repository at this point in the history
if it turns out we do need it, there is a known workaround for the issue we encountered:
NixOS/nixpkgs#154163
  • Loading branch information
arachnist committed Oct 23, 2023
1 parent 77f2d59 commit 362e77a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 48 deletions.
30 changes: 15 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 5 additions & 33 deletions nixos/akamanto/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,16 @@
sdImage.compressImage = false;
hardware.enableRedistributableFirmware = true;
boot = {
kernelPackages = pkgs.linuxPackages_rpi3;
loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
# revisit https://github.com/NixOS/nixpkgs/issues/154163 if actually needed
# kernelPackages = pkgs.linuxPackages_rpi3;
# camera, kernel side
kernelModules = [ "bcm2835-v4l2" ];
# avoid building zfs
supportedFilesystems = lib.mkForce [
"btrfs"
"cifs"
"f2fs"
"jfs"
"ntfs"
"reiserfs"
"vfat"
"xfs"
"ext4"
"vfat"
];
# rpi kernel config misses a bunch of things
initrd.includeDefaultModules = false;
};

# seems deprecated? will need to check later
boot.loader.raspberryPi = {
version = 3;
firmwareConfig = # camera
''
start_x=1
gpu_mem=256
'' + # normal clocks
''
force_turbo=1
'' + # audio
''
dtparam=audio=on
'';
};
# camera, kernel side
boot.kernelModules = [ "bcm2835-v4l2" ];

age.secrets.hswaw-wifi.file = ../../secrets/hswaw-wifi.age;
networking = {
Expand Down

0 comments on commit 362e77a

Please sign in to comment.