Use pkgsCross
Some checks failed
/ check (push) Failing after 3m1s

This commit is contained in:
Daniel Flanagan 2024-10-09 09:44:36 -05:00
parent a3997d519a
commit 352d4412f2

View file

@ -438,7 +438,7 @@
# otherwise, they will likely have no effect anyways # otherwise, they will likely have no effect anyways
text = '' text = ''
command -v powerprofilesctl &>/dev/null && bash -x -c 'powerprofilesctl set performance' command -v powerprofilesctl &>/dev/null && bash -x -c 'powerprofilesctl set performance'
command -v swaymsg &>/dev/null && bash -x -c 'swaymsg output eDP-1 mode 2880x1920@60Hz' command -v swaymsg &>/dev/null && bash -x -c 'swaymsg output eDP-1 mode 2880x1920@120Hz'
''; '';
}) })
(writeShellApplication (writeShellApplication
@ -657,28 +657,23 @@
# .disk-image; # .disk-image;
pinephone = let pinephone = let
system = "aarch64-linux";
inherit (nixpkgs-unstable) lib; inherit (nixpkgs-unstable) lib;
in in
lib.nixosSystem { nixpkgs-unstable.legacyPackages.${builtins.currentSystem}.pkgsCross.aarch64-multiplatform.nixos {
inherit system; imports = with nixosModules; [
modules = with nixosModules; [
# TODO: how do I build this as a .img to flash to an SD card? # TODO: how do I build this as a .img to flash to an SD card?
# for testing, this seems to work `nixos-rebuild build --impure --flake .#pinephone` # for testing, this seems to work `nixos-rebuild build --impure --flake .#pinephone`
{ # TODO: would like to use the mobile-nixos installer?
# enable cross-compiling with impure # "${nixpkgs-unstable}/nixos/modules/installer/sd-card/sd-image-aarch64-installer.nix"
nixpkgs.buildPlatform = builtins.currentSystem;
nixpkgs.hostPlatform = system;
}
linux # linux
home-manager-unstable-defaults # home-manager-unstable-defaults
# outputs.diskoConfigurations.unencrypted # can I even disko with an image-based installation? # outputs.diskoConfigurations.unencrypted # can I even disko with an image-based installation?
common # common
wifi # wifi
{ {
system.stateVersion = "24.11"; system.stateVersion = "24.11";
@ -686,7 +681,9 @@
{ {
imports = [ imports = [
(import "${mobile-nixos}/lib/configuration.nix" {device = "pine64-pinephone";}) (import "${mobile-nixos}/lib/configuration.nix" {
device = "pine64-pinephone";
})
]; ];
# TODO: quirk: since the pinephone kernel doesn't seem to have "rpfilter" support, firewall ain't working # TODO: quirk: since the pinephone kernel doesn't seem to have "rpfilter" support, firewall ain't working