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