dotfiles/hosts/scarab/default.nix

74 lines
2 KiB
Nix
Raw Normal View History

2024-04-09 22:49:56 -07:00
{ config, inputs, lib, pkgs, ... }:
2024-03-31 01:40:08 -07:00
let
in
{
2024-04-09 22:49:56 -07:00
imports = [
2024-04-09 23:03:34 -07:00
../default.nix
#"${inputs.mobile-nixos}/modules/quirks/qualcomm/sdm845-modem.nix"
#"${inputs.mobile-nixos}/modules/quirks/audio.nix"
2024-04-09 22:49:56 -07:00
];
2024-03-31 01:40:08 -07:00
2024-04-06 20:04:05 -07:00
stitchyconf.form = "handheld";
mobile = {
2024-03-31 01:40:08 -07:00
beautification = {
silentBoot = lib.mkDefault true;
splash = lib.mkDefault true;
};
boot.stage-1 = {
kernel.useStrictKernelConfig = true;
networking.enable = true;
};
2024-04-09 22:49:56 -07:00
quirks = {
audio.alsa-ucm-meld = true;
qualcomm.sdm845-modem.enable = true;
};
2024-03-31 01:40:08 -07:00
};
2024-04-06 21:52:03 -07:00
boot.loader = {
efi.canTouchEfiVariables = false;
systemd-boot.enable = false;
};
2024-04-01 14:47:00 -07:00
#services.openssh.enable = true;
2024-03-31 01:40:08 -07:00
services.xserver.desktopManager.phosh = {
enable = true;
2024-04-01 14:47:00 -07:00
user = "stitchynyan";
2024-03-31 01:40:08 -07:00
group = "users";
};
#services.xserver.desktopManager.plasma5 = {
# enable = true;
# mobile.enable = true;
#};
programs.firefox.enable = true;
programs.calls.enable = true;
hardware = {
bluetooth.enable = true;
sensor.iio.enable = true;
};
2024-04-18 02:29:41 -07:00
networking.networkmanager = {
enable = true;
unmanaged = [ "rndis0" "usb0" ];
};
systemd.user.services.wireplumber.environment.WIREPLUMBER_CONFIG_DIR = pkgs.runCommand "wireplumber-config" {} ''
cp -a "${pkgs.wireplumber}/share/wireplumber" "$out"
chmod +w "$out" "$out/main.lua.d"
ln -s ${pkgs.fetchurl {
url = "https://gitlab.com/postmarketOS/pmaports/-/raw/0aa9524204e9c9c002c860b87c972bc2ebf025f3/device/community/soc-qcom-sdm845/51-qcom-sdm845.lua";
hash = "sha256-56oNJJyuZZe1Iig1xskDuyazw3PbRZtmU/YRFUTqjwk=";
}} "$out/main.lua.d/51-qcom-sdm845.lua"
'';
systemd.services.wireplumber.environment.WIREPLUMBER_CONFIG_DIR = config.systemd.user.services.wireplumber.environment.WIREPLUMBER_CONFIG_DIR;
2024-03-31 01:40:08 -07:00
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"oneplus-sdm845-firmware"
"oneplus-sdm845-firmware-xz"
];
system.stateVersion = "23.11";
}