46 lines
926 B
Nix
46 lines
926 B
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
(import "${inputs.mobile-nixos}/lib/configuration.nix" { device = "oneplus-enchilada"; })
|
|
../../../modules/nixos
|
|
];
|
|
|
|
osbmModules = {
|
|
desktopEnvironment = "gnome";
|
|
machineType = "mobile";
|
|
hardware.systemd-boot.enable = false; # Mobile devices use different bootloader
|
|
programs.graphical.enable = false;
|
|
};
|
|
|
|
# mobile-nixos needs aliases (uses nettools instead of net-tools)
|
|
nixpkgs = {
|
|
config = {
|
|
allowAliases = true;
|
|
allowUnfreePredicate =
|
|
pkg:
|
|
builtins.elem (lib.getName pkg) [
|
|
"oneplus-sdm845-firmware-zstd"
|
|
"oneplus-sdm845-firmware"
|
|
];
|
|
};
|
|
system = "aarch64-linux";
|
|
};
|
|
# Minimal essential packages
|
|
environment.systemPackages = with pkgs; [
|
|
git
|
|
vim
|
|
wget
|
|
curl
|
|
lazygit
|
|
asciiquarium
|
|
neovim
|
|
kitty
|
|
];
|
|
|
|
system.stateVersion = "25.11";
|
|
}
|