Merge branch 'flake-parts'

This commit is contained in:
ooks-io 2024-05-19 16:06:41 +12:00
commit b221fb4781
230 changed files with 609 additions and 878 deletions

View file

@ -0,0 +1,30 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf;
inherit (builtins) elem;
isx86Linux = pkgs: with pkgs.stdenv; hostPlatform.isLinux && hostPlatform.isx86;
host = config.systemModules.host;
in
{
config = mkIf (host.type != "phone") {
hardware = {
opengl = {
enable = true;
driSupport = true;
driSupport32Bit = isx86Linux pkgs;
};
};
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
];
config = {
common.default = ["gtk"];
hyprland.default = ["gtk" "hyprland"];
};
};
};
}