mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-23 08:45:09 +01:00
31ab36fe78
`networking.firewall.checkReversePath` was being set to "loose" from Mullvad VPN, which was causing an issue with the kernel used by the PinePhone with Mobile NixOS. By changing this option to `false`, we get rid of the "This kernel does not support rpfilter" error, which seems to be inaccurate due to the result of `sysctl -a | grep \\.rp_filter` on the phone being consistent with the result on the laptop.
57 lines
949 B
Nix
57 lines
949 B
Nix
{ self, pkgs, ... }:
|
|
|
|
let
|
|
inherit (builtins) attrValues;
|
|
in
|
|
{
|
|
imports = attrValues self.nixosModules;
|
|
nixpkgs.overlays = attrValues self.overlays;
|
|
home-manager.sharedModules = attrValues self.homeManagerModules;
|
|
environment.systemPackages = attrValues self.packages.${pkgs.system};
|
|
|
|
modules = {
|
|
system = {
|
|
hostName = "mobile-nixos";
|
|
stateVersion = "23.11";
|
|
phone = true;
|
|
};
|
|
|
|
desktop = {
|
|
phone = true;
|
|
phosh = true;
|
|
};
|
|
|
|
hardware = {
|
|
keyboardBinds = true;
|
|
bluetooth = true;
|
|
phone = true;
|
|
sensor = true;
|
|
};
|
|
|
|
system = {
|
|
mullvad = true;
|
|
};
|
|
};
|
|
|
|
environment = {
|
|
sessionVariables = {
|
|
LIBGL_ALWAYS_SOFTWARE = "true";
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
calls.enable = true;
|
|
};
|
|
|
|
networking = {
|
|
wireless.enable = false;
|
|
wireguard.enable = true;
|
|
};
|
|
|
|
services = {
|
|
openssh.enable = true;
|
|
};
|
|
|
|
powerManagement.enable = true;
|
|
}
|