Started building at least...?
Some checks failed
/ check (push) Failing after 2m58s

This commit is contained in:
Daniel Flanagan 2024-10-08 20:22:11 -05:00
parent 337e587f92
commit 64e4c9c1b2

View file

@ -656,21 +656,45 @@
# .outputs
# .disk-image;
pinephone = nixpkgs-unstable.lib.nixosSystem {
pinephone = let
system = "aarch64-linux";
inherit (nixpkgs-unstable) lib;
in
lib.nixosSystem {
inherit system;
modules = with nixosModules; [
# TODO: how do I build this image?
# 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`
{
# enable cross-compiling with impure
nixpkgs.buildPlatform = builtins.currentSystem;
nixpkgs.hostPlatform = system;
}
linux
home-manager-defaults
home-manager-unstable-defaults
# outputs.diskoConfigurations.unencrypted # can I even disko with an image-based installation?
common
wifi
{
system.stateVersion = "24.11";
}
{
imports = [
(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
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;
}
];
};