nix-config/phone/configuration.nix
Donovan Glover da614fa655
phone: Use existing modules for configuration
This is a part of keeping the phone in sync with the laptop.
2024-06-19 02:10:21 -04:00

47 lines
858 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;
hardware.phone = 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;
}