mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-15 09:20:10 +01:00
190 lines
3.4 KiB
Nix
190 lines
3.4 KiB
Nix
{
|
|
self,
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
let
|
|
inherit (lib) mkIf mkForce;
|
|
inherit (config.modules.system) username;
|
|
inherit (builtins) attrValues;
|
|
|
|
no = {
|
|
name = "";
|
|
settings = {
|
|
Hidden = "true";
|
|
};
|
|
};
|
|
in
|
|
{
|
|
imports = attrValues self.nixosModules;
|
|
|
|
nixpkgs = {
|
|
overlays = with self.overlays; [ phinger-cursors ];
|
|
|
|
config.permittedInsecurePackages = [
|
|
"olm-3.2.16"
|
|
];
|
|
};
|
|
|
|
home-manager.sharedModules = attrValues {
|
|
inherit (self.homeModules)
|
|
dconf
|
|
eza
|
|
fish
|
|
git
|
|
gpg
|
|
gtk
|
|
htop
|
|
kitty
|
|
librewolf
|
|
neovim
|
|
starship
|
|
xdg-user-dirs
|
|
xresources
|
|
;
|
|
|
|
config = {
|
|
programs.man.generateCaches = mkForce false;
|
|
|
|
xdg = {
|
|
desktopEntries = {
|
|
anki = no;
|
|
htop = no;
|
|
fish = no;
|
|
nvim = no;
|
|
yazi = no;
|
|
qt5ct = no;
|
|
qt6ct = no;
|
|
gcdemu = no;
|
|
nixos-manual = no;
|
|
image-analyzer = no;
|
|
kvantummanager = no;
|
|
chromium-browser = no;
|
|
|
|
"org.gnome.Extensions" = no;
|
|
"org.pwmt.zathura" = no;
|
|
"org.gnome.eog" = no;
|
|
"org.gnome.Settings" = no;
|
|
"org.sigxcpu.Livi" = no;
|
|
};
|
|
|
|
userDirs = {
|
|
download = mkForce "/home/${username}";
|
|
documents = mkForce "/home/${username}";
|
|
music = mkForce "/home/${username}";
|
|
pictures = mkForce "/home/${username}";
|
|
videos = mkForce "/home/${username}";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
environment = {
|
|
sessionVariables = {
|
|
LIBGL_ALWAYS_SOFTWARE = "true";
|
|
};
|
|
|
|
systemPackages = with pkgs; [
|
|
chatty
|
|
megapixels
|
|
livi
|
|
gnome-contacts
|
|
eog
|
|
];
|
|
};
|
|
|
|
modules = {
|
|
system = {
|
|
hostName = "mobile-nixos";
|
|
stateVersion = "23.11";
|
|
mullvad = true;
|
|
phone = true;
|
|
};
|
|
|
|
hardware.keyboardBinds = true;
|
|
};
|
|
|
|
i18n.inputMethod.enable = mkForce false;
|
|
|
|
programs = {
|
|
calls.enable = true;
|
|
|
|
cdemu.enable = mkForce false;
|
|
hyprland.enable = mkForce false;
|
|
thunar.enable = mkForce false;
|
|
};
|
|
|
|
networking = {
|
|
wireless.enable = false;
|
|
wireguard.enable = true;
|
|
|
|
networkmanager.ensureProfiles.profiles = {
|
|
mobile = {
|
|
connection = {
|
|
id = "4G";
|
|
type = "gsm";
|
|
};
|
|
|
|
gsm.apn = "NXTGENPHONE";
|
|
ipv4.method = "auto";
|
|
|
|
ipv6 = {
|
|
addr-gen-mode = "default";
|
|
method = "auto";
|
|
};
|
|
};
|
|
};
|
|
|
|
firewall.checkReversePath = mkForce false;
|
|
};
|
|
|
|
services = {
|
|
xserver = {
|
|
displayManager.lightdm.enable = false;
|
|
|
|
desktopManager.phosh = {
|
|
enable = true;
|
|
group = "users";
|
|
user = username;
|
|
};
|
|
};
|
|
|
|
udisks2.enable = mkForce false;
|
|
pipewire.enable = mkForce false;
|
|
greetd.enable = mkForce false;
|
|
};
|
|
|
|
boot = {
|
|
enableContainers = false;
|
|
|
|
binfmt.emulatedSystems = mkForce [ ];
|
|
loader.systemd-boot.enable = mkIf (pkgs.system == "aarch64-linux") (mkForce false);
|
|
|
|
kernel.sysctl = {
|
|
"vm.dirty_background_ratio" = 5;
|
|
"vm.dirty_ratio" = 10;
|
|
};
|
|
};
|
|
|
|
documentation = {
|
|
enable = false;
|
|
man.generateCaches = false;
|
|
};
|
|
|
|
hardware.graphics.enable32Bit = mkForce false;
|
|
|
|
powerManagement = {
|
|
enable = true;
|
|
|
|
cpufreq = rec {
|
|
min = 816000;
|
|
max = min;
|
|
};
|
|
|
|
cpuFreqGovernor = "performance";
|
|
};
|
|
}
|