nix-config/hosts/phone/configuration.nix

137 lines
2.3 KiB
Nix
Raw Normal View History

{ self, pkgs, lib, ... }:
2024-06-15 17:56:02 +02:00
let
inherit (lib) mkForce;
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)
alacritty
eza
fish
git
gpg
gtk
htop
librewolf
mpv
ncmpcpp
neovim
starship
thunar
xdg-user-dirs
xresources
;
config = {
programs.man.generateCaches = mkForce false;
2024-07-18 04:45:40 +02:00
dconf.settings = {
"sm/puri/phosh/lockscreen" = {
shuffle-keypad = true;
};
2024-07-18 04:46:02 +02:00
"org/gnome/desktop/interface" = {
show-battery-percentage = true;
};
"org/gnome/eog/ui" = {
image-gallery = true;
sidebar = false;
};
2024-07-18 04:45:40 +02:00
};
};
};
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
megapixels
fractal
g4music
livi
papers
phosh-mobile-settings
resources
tuba
caerbannog
eog
geary
;
};
modules = {
system = {
hostName = "mobile-nixos";
stateVersion = "23.11";
mullvad = true;
};
hardware.keyboardBinds = true;
};
2024-06-15 17:56:02 +02:00
programs = {
calls.enable = true;
cdemu.enable = mkForce false;
2024-06-15 17:56:02 +02:00
};
networking = {
wireless.enable = false;
2024-06-15 18:07:24 +02:00
wireguard.enable = true;
firewall.checkReversePath = mkForce false;
};
2024-06-15 18:06:53 +02:00
services = {
openssh.enable = true;
udisks2.enable = mkForce false;
pipewire.enable = mkForce false;
};
boot = {
enableContainers = false;
binfmt.emulatedSystems = mkForce [ ];
loader.systemd-boot.enable = mkForce false;
};
documentation.man.generateCaches = false;
hardware.graphics.enable32Bit = mkForce false;
virtualisation.virtualbox.host.enable = mkForce false;
powerManagement = {
enable = true;
cpufreq = rec {
min = 648000;
max = min;
};
cpuFreqGovernor = "powersave";
};
}