nix-config/hosts/phone/configuration.nix

114 lines
1.8 KiB
Nix
Raw Normal View History

{ self, pkgs, lib, ... }:
2024-06-15 17:56:02 +02:00
let
inherit (builtins) attrValues;
2024-06-15 17:56:02 +02:00
in
{
imports = attrValues self.nixosModules;
nixpkgs.overlays = attrValues {
inherit (self.overlays)
phinger-cursors
;
};
home-manager.sharedModules = attrValues {
inherit (self.homeManagerModules)
eza
fish
git
gpg
gtk
htop
kitty
librewolf
mpv
ncmpcpp
neovim
starship
thunar
xdg-user-dirs
xresources
;
};
environment.systemPackages = attrValues {
inherit (self.packages.${pkgs.system})
webp-thumbnailer
;
inherit (pkgs.gnome)
gnome-contacts
gnome-sound-recorder
gnome-maps
;
inherit (pkgs)
gurk-rs
android-tools
chatty
gnome-console
megapixels
fractal
g4music
livi
papers
phosh-mobile-settings
resources
tuba
caerbannog
eog
geary
;
};
modules = {
system = {
hostName = "mobile-nixos";
stateVersion = "23.11";
phone = true;
};
desktop = {
phone = true;
};
hardware.keyboardBinds = true;
system = {
mullvad = true;
};
};
hardware.graphics.enable32Bit = lib.mkForce false;
virtualisation.virtualbox.host.enable = lib.mkForce false;
2024-06-15 17:56:02 +02:00
programs = {
calls.enable = true;
cdemu.enable = lib.mkForce false;
2024-06-15 17:56:02 +02:00
};
services.pipewire.enable = lib.mkForce false;
boot.enableContainers = false;
networking = {
wireless.enable = false;
2024-06-15 18:07:24 +02:00
wireguard.enable = true;
};
2024-06-15 18:06:53 +02:00
services = {
openssh.enable = true;
udisks2.enable = lib.mkForce false;
};
powerManagement = {
enable = true;
cpufreq = rec {
min = 648000;
max = min;
};
cpuFreqGovernor = "powersave";
};
}