moby: ship without mobile-nixos' stage-1
the stage-1 fails to handle impermanence
This commit is contained in:
@@ -7,36 +7,58 @@
|
|||||||
./firmware.nix
|
./firmware.nix
|
||||||
./fs.nix
|
./fs.nix
|
||||||
];
|
];
|
||||||
|
nixpkgs.overlays = [(next: prev: {
|
||||||
|
# without this, kernel module build fails due to lacking dm_mod.
|
||||||
|
# see: https://github.com/NixOS/nixpkgs/issues/126755#issuecomment-869149243
|
||||||
|
# dm_mod appears to still be loaded, though? maybe some weird thing between compiled and dynamically-loaded mods?
|
||||||
|
makeModulesClosure = x:
|
||||||
|
prev.makeModulesClosure (x // { allowMissing = true; });
|
||||||
|
})];
|
||||||
# XXX colin: phosh doesn't work well with passwordless login
|
# XXX colin: phosh doesn't work well with passwordless login
|
||||||
users.users.colin.initialPassword = "147147";
|
users.users.colin.initialPassword = "147147";
|
||||||
|
services.getty.autologinUser = "root"; # allows for emergency maintenance?
|
||||||
|
|
||||||
|
# sane.home-manager.extraPackages = [
|
||||||
|
# # for web browsers see: https://forum.pine64.org/showthread.php?tid=13669
|
||||||
|
# pkgs.angelfish # plasma mobile web browser; broken on phosh (poor wayland support)
|
||||||
|
# # pkgs.plasma5Packages.index # file browser
|
||||||
|
# pkgs.plasma5Packages.konsole # terminal
|
||||||
|
# # pkgs.plasma5Packages.pix # picture viewer
|
||||||
|
# pkgs.plasma5Packages.kalk # calculator; broken on phosh
|
||||||
|
# # pkgs.plasma5Packages.buho # (plasma mobile?) note application
|
||||||
|
# pkgs.plasma5Packages.kasts # podcast app; works on phosh after setting QT envar
|
||||||
|
# pkgs.plasma5Packages.koko # image gallery; broken on phosh
|
||||||
|
# pkgs.plasma5Packages.kwave # media player.
|
||||||
|
# # pkgs.plasma5Packages.neochat # matrix client. needs qcoro => no aarch64 support
|
||||||
|
# # pkgs.plasma5Packages.plasma-dialer # phone dialer
|
||||||
|
# # pkgs.plasma5Packages.plasma-mobile # the whole shebang?
|
||||||
|
# # pkgs.plasma5Packages.plasma-settings
|
||||||
|
# pkgs.plasma5Packages.bomber # arcade game; broken on phosh
|
||||||
|
# pkgs.plasma5Packages.kapman # pacman
|
||||||
|
# pkgs.st # suckless terminal; broken on phosh
|
||||||
|
# # pkgs.alacritty # terminal; crashes phosh
|
||||||
|
# ];
|
||||||
|
# sane.home-packages.enableGuiPkgs = false; # XXX faster builds/imaging for debugging
|
||||||
sane.home-manager.extraPackages = [
|
sane.home-manager.extraPackages = [
|
||||||
# for web browsers see: https://forum.pine64.org/showthread.php?tid=13669
|
|
||||||
pkgs.angelfish # plasma mobile web browser; broken on phosh (poor wayland support)
|
|
||||||
# pkgs.plasma5Packages.index # file browser
|
|
||||||
pkgs.plasma5Packages.konsole # terminal
|
pkgs.plasma5Packages.konsole # terminal
|
||||||
# pkgs.plasma5Packages.pix # picture viewer
|
|
||||||
pkgs.plasma5Packages.kalk # calculator; broken on phosh
|
|
||||||
# pkgs.plasma5Packages.buho # (plasma mobile?) note application
|
|
||||||
pkgs.plasma5Packages.kasts # podcast app; works on phosh after setting QT envar
|
|
||||||
pkgs.plasma5Packages.koko # image gallery; broken on phosh
|
|
||||||
pkgs.plasma5Packages.kwave # media player.
|
|
||||||
# pkgs.plasma5Packages.neochat # matrix client. needs qcoro => no aarch64 support
|
|
||||||
# pkgs.plasma5Packages.plasma-dialer # phone dialer
|
|
||||||
# pkgs.plasma5Packages.plasma-mobile # the whole shebang?
|
|
||||||
# pkgs.plasma5Packages.plasma-settings
|
|
||||||
pkgs.plasma5Packages.bomber # arcade game; broken on phosh
|
|
||||||
pkgs.plasma5Packages.kapman # pacman
|
|
||||||
pkgs.st # suckless terminal; broken on phosh
|
|
||||||
# pkgs.alacritty # terminal; crashes phosh
|
|
||||||
];
|
];
|
||||||
|
|
||||||
sane.nixcache.enable = true;
|
sane.nixcache.enable = true;
|
||||||
sane.impermanence.enable = true; # XXX experimental
|
sane.impermanence.enable = true; # XXX experimental
|
||||||
sane.gui.phosh.enable = true;
|
sane.gui.phosh.enable = true;
|
||||||
boot.loader.grub.enable = false;
|
|
||||||
|
boot.loader.efi.canTouchEfiVariables = false;
|
||||||
mobile.bootloader.enable = false;
|
mobile.bootloader.enable = false;
|
||||||
boot.loader.generic-extlinux-compatible.enable = true;
|
mobile.boot.stage-1.enable = false;
|
||||||
|
# boot.initrd.systemd.enable = false;
|
||||||
|
# boot.initrd.services.swraid.enable = false; # attempt to fix dm_mod stuff
|
||||||
|
|
||||||
|
# TODO: try enabling mobile-nixos' /lib/firmware?
|
||||||
|
# includes:
|
||||||
|
# rtl_bt (bluetooth)
|
||||||
|
# anx7688-fw.bin (USB-C -> HDMI bridge)
|
||||||
|
# ov5640_af.bin (camera module)
|
||||||
|
# hardware.firmware = [ config.mobile.device.firmware ];
|
||||||
|
|
||||||
system.stateVersion = "21.11";
|
system.stateVersion = "21.11";
|
||||||
|
|
||||||
|
@@ -38,6 +38,11 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# XXX: phosh enables networkmanager by default; can probably disable these lines
|
||||||
|
networking.useDHCP = false;
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
networking.wireless.enable = lib.mkForce false;
|
||||||
|
|
||||||
hardware.opengl.enable = true;
|
hardware.opengl.enable = true;
|
||||||
hardware.opengl.driSupport = true;
|
hardware.opengl.driSupport = true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user