mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-26 10:13:25 +01:00
de2d3550d0
This should make it easier to switch between hyprland and phosh.
58 lines
988 B
Nix
58 lines
988 B
Nix
{ nix-config, pkgs, ... }:
|
|
|
|
let
|
|
inherit (builtins) attrValues;
|
|
in
|
|
{
|
|
imports = attrValues {
|
|
inherit (nix-config.nixosModules) system shell desktop hardware;
|
|
};
|
|
|
|
nixpkgs.overlays = attrValues nix-config.overlays;
|
|
|
|
home-manager.sharedModules = attrValues nix-config.homeManagerModules;
|
|
|
|
environment.systemPackages = attrValues nix-config.packages.${pkgs.system};
|
|
|
|
modules = {
|
|
system = {
|
|
hostName = "mobile-nixos";
|
|
stateVersion = "23.11";
|
|
phone = true;
|
|
};
|
|
|
|
desktop = {
|
|
phone = true;
|
|
phosh = true;
|
|
};
|
|
|
|
hardware = {
|
|
keyboardBinds = true;
|
|
bluetooth = true;
|
|
phone = true;
|
|
sensor = true;
|
|
};
|
|
};
|
|
|
|
environment = {
|
|
sessionVariables = {
|
|
LIBGL_ALWAYS_SOFTWARE = "true";
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
calls.enable = true;
|
|
};
|
|
|
|
networking = {
|
|
wireless.enable = false;
|
|
wireguard.enable = true;
|
|
};
|
|
|
|
services = {
|
|
openssh.enable = true;
|
|
};
|
|
|
|
powerManagement.enable = true;
|
|
}
|