weather: attempts to get display working

This commit is contained in:
Aaron Bieber 2023-09-09 06:44:13 -06:00
parent 18ba04a650
commit c95ae96d03
No known key found for this signature in database
3 changed files with 36 additions and 39 deletions

View File

@ -204,8 +204,7 @@
] "europa";
pwntie = buildSys "x86_64-linux" stable [] "pwntie";
stan = buildSys "x86_64-linux" unstable [] "stan";
weather = buildSys "aarch64-linux" stable
[ nixos-hardware.nixosModules.raspberry-pi-4 ] "weather";
weather = buildSys "aarch64-linux" stable [] "weather";
faf = buildSys "x86_64-linux" stable [./configs/hardened.nix] "faf";
box = buildSys "x86_64-linux" stable [./configs/hardened.nix] "box";

View File

@ -19,17 +19,17 @@ in {
boot = {
initrd.availableKernelModules = ["usbhid" "usb_storage" "vc4" "rtc-ds3232" "rtc-ds1307"];
kernelPackages = pkgs.linuxPackages;
kernelPackages = pkgs.linuxPackages_latest;
kernelModules = ["raspberrypi_ts" "rtc-ds3232" "rtc-ds1307"];
#kernelPatches = [{
# name = "touchscreen";
# patch = null;
# extraConfig = ''
# CONFIG_TOUCHSCREEN_RASPBERRYPI_FW m
# CONFIG_RTC_DRV_DS1307 m
# CONFIG_RTC_DRV_DS3232 m
# '';
#}];
kernelPatches = [{
name = "touchscreen";
patch = null;
extraConfig = ''
CONFIG_RTC_DRV_DS1307 m
CONFIG_RTC_DRV_DS3232 m
CONFIG_TOUCHSCREEN_RASPBERRYPI_FW m
'';
}];
loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
@ -152,7 +152,7 @@ in {
myLayoutHook =
windowNavigation $
subTabbed $
spacingRaw True (Border 20 5 5 5) True (Border 10 10 10 10) True $
spacingRaw True (Border 25 5 5 5) True (Border 10 10 10 10) True $
(tiled ||| Mirror tiled ||| Full)
where
tiled =
@ -175,7 +175,7 @@ in {
myStartupHook :: X ()
myStartupHook = do
spawn "pkill polybar; polybar"
spawnOnce "firefox --kiosk https://graph.tapenet.org"
spawnOnce "firefox --kiosk https://home.bold.daemon/lovelace/0"
'';
};
#desktopManager.xfce.enable = true;
@ -188,7 +188,7 @@ in {
users.users.root = userBase;
environment.systemPackages = with pkgs; [
qutebrowser
firefox
dtc
rofi
polybar

View File

@ -12,28 +12,26 @@
hardware.enableRedistributableFirmware = true;
hardware.deviceTree = {
overlays = [
#"${pkgs.raspberrypifw}/share/raspberrypi/boot/overlays/rpi-ft5406.dtbo"
{
name = "rpi4-cma-overlay";
dtsText = ''
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2711";
fragment@0 {
target = <&cma>;
__overlay__ {
size = <(512 * 1024 * 1024)>;
};
};
};
'';
}
];
};
#hardware.raspberry-pi."4".fkms-3d.enable = true;
#hardware.deviceTree = {
# overlays = [
# #"${pkgs.raspberrypifw}/share/raspberrypi/boot/overlays/rpi-ft5406.dtbo"
# {
# name = "rpi4-cma-overlay";
# dtsText = ''
# // SPDX-License-Identifier: GPL-2.0
# /dts-v1/;
# /plugin/;
# / {
# compatible = "brcm,bcm2711";
# fragment@0 {
# target = <&cma>;
# __overlay__ {
# size = <(512 * 1024 * 1024)>;
# };
# };
# };
# '';
# }
# ];
#};
}