nix-community / raspberry-pi-nix

NixOS modules to aid in configuring NixOS for raspberry pi products
MIT License
155 stars 37 forks source link

configuration trying to build webkitgtk-2.44 #71

Open Strix-Vyxlor opened 17 hours ago

Strix-Vyxlor commented 17 hours ago

I have a small problem, my configuration (see below) for building an sd-image tries to compile an older version of gtkwebkit I'm am using nixpkgs-unstable, and the latest version of gtkwebkit is 2.46.0+abi=4.0, but it tries to compile 2.44.0. I cannot find where this package is even required. I would build the package myself, but when compiling on 8 cores and 32Gb ram it runs out of memory (this is on wsl tho). And when looking on hydra there are prebuild packages available.

I am able to (remote-)build with the following devices (all devices cross compile)

Zix is my own nix-helper and is very work in progress: https://github.com/Strix-Vyxlor/zix


  pkgs,
  lib,
  zix-pkg,
  systemSettings,
  userSettings,
  inputs,
  ...
}: {
  imports = [
    inputs.raspberry-pi-nix.nixosModules.raspberry-pi
    ../../system/security/doas.nix
    ../../system/security/gpg.nix
  ];
  users.users.root.initialPassword = "root";

  raspberry-pi-nix.board = "bcm2712";
  raspberry-pi-nix.uboot.enable = false;

  nix.package = pkgs.nixFlakes;
  nix.extraOptions = ''
    experimental-features = nix-command flakes
  '';
  nixpkgs.config.allowUnfree = true;

  nix.settings = {
    substituters = [
      "https://nix-community.cachix.org"
    ];
    trusted-public-keys = [
      "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
    ];
  };

  boot.plymouth.enable = true;

  networking.hostName = systemSettings.hostname;
  networking.networkmanager.enable = true;

  time.timeZone = systemSettings.timezone;
  i18n.defaultLocale = systemSettings.locale;
  i18n.extraLocaleSettings = {
    LC_ADDRESS = systemSettings.locale;
    LC_IDENTIFICATION = systemSettings.locale;
    LC_MEASUREMENT = systemSettings.locale;
    LC_MONETARY = systemSettings.locale;
    LC_NAME = systemSettings.locale;
    LC_NUMERIC = systemSettings.locale;
    LC_PAPER = systemSettings.locale;
    LC_TELEPHONE = systemSettings.locale;
    LC_TIME = systemSettings.locale;
  };

  users.users.${userSettings.username} = {
    isNormalUser = true;
    description = userSettings.name;
    extraGroups = ["networkmanager" "wheel" "input" "libvirtd"];
    packages = [];
    uid = 1000;
  };

  environment.systemPackages = with pkgs; [
    zix-pkg
    helix
    wget
    git
    home-manager
    wpa_supplicant
    bluez
    bluez-tools
  ];

  fonts.fontDir.enable = true;

  console.keyMap = "be-latin1";

  system.stateVersion = "24.05";

  hardware = {
    raspberry-pi = {
      config = {
        all = {
          options = {
            # The firmware will start our u-boot binary rather than a
            # linux kernel
            arm_64bit = {
              enable = true;
              value = true;
            };
            disable_overscan = {
              enable = true;
              value = true;
            };
          };
          dt-overlays = {
            vc4-kms-v3d = {
              enable = true;
              params = {};
            };
          };
        };
      };
    };
  };
}```

Sorry for any typos or bad English, I'm dyslectic and non native English speaker.
tstat commented 8 hours ago

Hey @Strix-Vyxlor. Yes, this issue has been mentioned here https://github.com/nix-community/raspberry-pi-nix/issues/48#issuecomment-2369426119, and the dependency reportedly arises from a networkmanager plugin.

If you don't care about using the rpi libcamera fork, then the easiest thing to do would be to disable it by setting the libcamera-overlay.enable setting to false (src)

Strix-Vyxlor commented 5 hours ago

Thanks, i will try this and close the issue If it works.