nixos-configs/modules/ags/default.nix

49 lines
1,017 B
Nix
Raw Normal View History

2023-11-30 17:17:34 -05:00
{
ags,
config,
pkgs,
...
}: let
isNvidia = config.hardware.nvidia.modesetting.enable;
isTouchscreen = config.hardware.sensor.iio.enable;
in {
services.upower.enable = true;
home-manager.users.${config.vars.user}.imports = [
2023-11-30 17:17:34 -05:00
ags.homeManagerModules.default
({
config,
lib,
...
}: let
symlink = config.lib.file.mkOutOfStoreSymlink;
optionals = lib.lists.optionals;
in {
programs.ags = {
enable = true;
configDir = symlink "${config.vars.configDir}/ags";
2023-11-30 17:17:34 -05:00
package = ags.packages.x86_64-linux.default;
extraPackages = [pkgs.libgudev];
};
home.packages =
[config.customPkgs.coloryou]
++ (with pkgs; [
2023-11-30 17:17:34 -05:00
# ags
sassc
playerctl
## gui
pavucontrol # TODO: replace with ags widget
])
++ (optionals isTouchscreen (with pkgs; [
2023-11-30 17:17:34 -05:00
# touchscreen
lisgd
squeekboard
ydotool
]));
2023-11-30 17:17:34 -05:00
})
];
}