This commit is contained in:
parent
337e587f92
commit
64e4c9c1b2
1 changed files with 39 additions and 15 deletions
30
flake.nix
30
flake.nix
|
@ -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;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue