mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-08 09:24:17 +01:00
3f25b52168
Phone runs much, much cooler without irqbalance enabled and `cat /sys/class/thermal/thermal_zone0/temp` often reports a difference of at least 10000, such as from 46897 to 36367. In other words, the phone seems to be consistently 20 degrees fahrenheit cooler.
77 lines
1.1 KiB
Nix
77 lines
1.1 KiB
Nix
{ self, pkgs, lib, ... }:
|
|
|
|
let
|
|
inherit (builtins) attrValues;
|
|
in
|
|
{
|
|
imports = attrValues self.nixosModules;
|
|
|
|
nixpkgs.overlays = attrValues {
|
|
inherit (self.overlays) phinger-cursors;
|
|
};
|
|
|
|
home-manager.sharedModules = attrValues {
|
|
inherit (self.homeManagerModules)
|
|
eza
|
|
fcitx
|
|
fish
|
|
git
|
|
gpg
|
|
gtk
|
|
htop
|
|
librewolf
|
|
neovim
|
|
starship
|
|
xdg-user-dirs
|
|
xresources
|
|
;
|
|
};
|
|
|
|
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;
|
|
|
|
system = {
|
|
mullvad = true;
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
calls.enable = true;
|
|
};
|
|
|
|
services.pipewire.enable = lib.mkForce false;
|
|
|
|
networking = {
|
|
wireless.enable = false;
|
|
wireguard.enable = true;
|
|
};
|
|
|
|
services = {
|
|
openssh.enable = true;
|
|
};
|
|
|
|
powerManagement = {
|
|
enable = true;
|
|
|
|
cpufreq = rec {
|
|
min = 648000;
|
|
max = min;
|
|
};
|
|
|
|
cpuFreqGovernor = "powersave";
|
|
};
|
|
}
|