{ lib, config, pkgs, home-manager, ... } @ args: let baseCfg = (import ./config.nix args); in { # FIXME: introduce a mechanism to allow pre-user overrides! this # needs to be supported by the module _or_ we have some very generic # mechanism in libkookie.harness to handle this. But as it stands # right now, all users will have the same i3 config. home-manager.users = with lib; (listToAttrs (map (user: nameValuePair "${user}" ({ ... }: { imports = [ ./setup.nix ]; })) config.libkookie.activeUsers)); # FIXME: add 32bit driver support only if steam support is enabled hardware.opengl = { enable = true; driSupport = true; extraPackages = with pkgs; [ libGL xorg.xf86videoati xorg.xf86inputlibinput ]; driSupport32Bit = true; }; services.xserver = (import ./x.nix args); }