nix-config/phone/configuration.nix

59 lines
1.1 KiB
Nix
Raw Normal View History

{ nix-config, pkgs, lib, ... }:
2024-06-15 17:56:02 +02:00
let
inherit (lib) singleton mkForce;
inherit (builtins) attrValues;
2024-06-15 17:56:02 +02:00
in
{
imports = attrValues {
inherit (nix-config.nixosModules) system shell desktop hardware;
};
nixpkgs.overlays = attrValues nix-config.overlays;
home-manager.sharedModules = attrValues nix-config.homeManagerModules ++ singleton {
wayland.windowManager.hyprland.settings = mkForce {
decoration = {
drop_shadow = false;
blur.enabled = false;
};
animations.enabled = false;
};
};
environment.systemPackages = attrValues nix-config.packages.${pkgs.system};
modules = {
system = {
hostName = "mobile-nixos";
stateVersion = "23.11";
phone = true;
};
desktop.phone = true;
hardware.phone = true;
};
2024-06-15 17:56:02 +02:00
environment = {
sessionVariables = {
LIBGL_ALWAYS_SOFTWARE = "true";
2024-06-15 17:56:02 +02:00
};
};
programs = {
calls.enable = true;
};
networking = {
wireless.enable = false;
2024-06-15 18:07:24 +02:00
wireguard.enable = true;
};
2024-06-15 18:06:53 +02:00
services = {
openssh.enable = true;
};
2024-06-15 17:56:02 +02:00
powerManagement.enable = true;
}