mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-29 03:34:46 +01:00
7a95a8c4fd
Would rather not have to worry about compiling Hyprland if I can avoid it since I've already compiled it so many times already.
96 lines
1.5 KiB
Nix
96 lines
1.5 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)
|
|
dunst
|
|
eww
|
|
eza
|
|
fcitx
|
|
fish
|
|
git
|
|
gpg
|
|
gtk
|
|
htop
|
|
hyprland
|
|
ironbar
|
|
kitty
|
|
librewolf
|
|
mpv
|
|
ncmpcpp
|
|
neovim
|
|
starship
|
|
swayosd
|
|
thunar
|
|
xdg-user-dirs
|
|
xresources
|
|
;
|
|
};
|
|
|
|
environment.systemPackages = attrValues {
|
|
inherit (self.packages.${pkgs.system})
|
|
webp-thumbnailer
|
|
;
|
|
};
|
|
|
|
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;
|
|
|
|
programs = {
|
|
calls.enable = true;
|
|
cdemu.enable = lib.mkForce false;
|
|
};
|
|
|
|
services.pipewire.enable = lib.mkForce false;
|
|
|
|
networking = {
|
|
wireless.enable = false;
|
|
wireguard.enable = true;
|
|
};
|
|
|
|
services = {
|
|
openssh.enable = true;
|
|
udisks2.enable = lib.mkForce false;
|
|
};
|
|
|
|
powerManagement = {
|
|
enable = true;
|
|
|
|
cpufreq = rec {
|
|
min = 648000;
|
|
max = min;
|
|
};
|
|
|
|
cpuFreqGovernor = "powersave";
|
|
};
|
|
}
|