Well, we tried
Some checks failed
/ check (push) Failing after 50s

This commit is contained in:
Daniel Flanagan 2024-10-09 11:04:24 -05:00
parent a1acf60896
commit 2b4b1c5850
2 changed files with 37 additions and 25 deletions

View file

@ -659,8 +659,39 @@
pinephone = let pinephone = let
inherit (nixpkgs-unstable) lib; inherit (nixpkgs-unstable) lib;
in in
nixpkgs-unstable.legacyPackages.${builtins.currentSystem}.pkgsCross.aarch64-multiplatform.nixos { lib.nixosSystem {
imports = with nixosModules; [ system = "aarch64-linux";
# lib.nixosSystem {
modules = with nixosModules; [
{
imports = [
(import "${mobile-nixos}/lib/configuration.nix" {
device = "pine64-pinephone";
})
];
# nixpkgs.hostPlatform.system = "aarch64-linux";
nixpkgs.buildPlatform = "x86_64-linux";
# TODO: quirk: since the pinephone kernel doesn't seem to have "rpfilter" support, firewall ain't working
networking.firewall.enable = lib.mkForce false;
# TODO: quirk: since git send-email requires perl support, which we don't seem to have on the pinephone, we're just disabling git for now
# TODO: would likely be easier/better to somehow ignore the assertion? probably a way to do that...
programs.git.enable = lib.mkForce false;
# this option is conflicted, presumably due to some assumption in my defaults/common config
# the sd-image module we're importing above has this set to true, so we better go with that?
# that said, I think the mobile-nixos bootloader module has this set to false, so...
# TODO: what does this mean?
boot.loader.generic-extlinux-compatible.enable = lib.mkForce true;
# another conflicting option since I think I default to NetworkManager and this conflicts with networking.wireless.enable
networking.networkmanager.enable = lib.mkForce false;
networking.wireless.enable = lib.mkForce true;
}
# 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`
@ -680,28 +711,10 @@
} }
{ {
imports = [ # nixpkgs.buildPlatform = "x86_64-linux";
(import "${mobile-nixos}/lib/configuration.nix" { # nixpkgs.hostPlatform = lib.systems.examples.aarch64-multiplatform;
device = "pine64-pinephone"; # nixpkgs.localSystem.system = lib.systems.examples.x86_64-linux;
}) # nixpkgs.crossSystem = lib.mkForce null;
];
# TODO: quirk: since the pinephone kernel doesn't seem to have "rpfilter" support, firewall ain't working
networking.firewall.enable = lib.mkForce false;
# TODO: quirk: since git send-email requires perl support, which we don't seem to have on the pinephone, we're just disabling git for now
# TODO: would likely be easier/better to somehow ignore the assertion? probably a way to do that...
programs.git.enable = lib.mkForce false;
# this option is conflicted, presumably due to some assumption in my defaults/common config
# the sd-image module we're importing above has this set to true, so we better go with that?
# that said, I think the mobile-nixos bootloader module has this set to false, so...
# TODO: what does this mean?
boot.loader.generic-extlinux-compatible.enable = lib.mkForce true;
# another conflicting option since I think I default to NetworkManager and this conflicts with networking.wireless.enable
networking.networkmanager.enable = lib.mkForce false;
networking.wireless.enable = lib.mkForce true;
} }
]; ];
}; };

View file

@ -1230,7 +1230,6 @@
}; };
}; };
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
system.stateVersion = lib.mkDefault "24.05"; system.stateVersion = lib.mkDefault "24.05";
}; };