2023-11-30 17:17:34 -05:00
|
|
|
{
|
|
|
|
ags,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2024-01-09 13:13:04 -05:00
|
|
|
inherit (config.vars) configDir mainUser;
|
2023-11-30 17:17:34 -05:00
|
|
|
isTouchscreen = config.hardware.sensor.iio.enable;
|
|
|
|
in {
|
|
|
|
services.upower.enable = true;
|
|
|
|
|
2024-01-09 13:13:04 -05:00
|
|
|
home-manager.users.${mainUser}.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;
|
2024-01-09 13:13:04 -05:00
|
|
|
configDir = symlink "${configDir}/ags";
|
2023-12-08 12:48:48 -05:00
|
|
|
package = ags.packages.${pkgs.system}.default;
|
2023-12-09 10:25:11 -05:00
|
|
|
extraPackages = with pkgs; [
|
|
|
|
libgudev
|
|
|
|
];
|
2023-11-30 17:17:34 -05:00
|
|
|
};
|
|
|
|
|
2023-12-01 16:53:51 -05:00
|
|
|
home.packages =
|
|
|
|
[config.customPkgs.coloryou]
|
|
|
|
++ (with pkgs; [
|
2023-11-30 17:17:34 -05:00
|
|
|
# ags
|
|
|
|
sassc
|
2024-01-13 11:15:08 -05:00
|
|
|
bun
|
2023-11-30 17:17:34 -05:00
|
|
|
playerctl
|
|
|
|
|
|
|
|
## gui
|
|
|
|
pavucontrol # TODO: replace with ags widget
|
2024-01-14 20:52:30 -05:00
|
|
|
|
|
|
|
(writeShellApplication {
|
|
|
|
name = "updateTypes";
|
|
|
|
runtimeInputs = [ nodejs_18 typescript git ];
|
|
|
|
text = ''
|
|
|
|
if [[ -d /tmp/ags-types ]]; then
|
|
|
|
rm -r /tmp/ags-types
|
|
|
|
fi
|
|
|
|
rm -r ~/.config/ags/types
|
|
|
|
|
|
|
|
git clone https://github.com/Aylur/ags.git /tmp/ags-types
|
|
|
|
/tmp/ags-types/example/starter-config/setup.sh
|
|
|
|
|
|
|
|
rm -r /tmp/ags-types
|
|
|
|
'';
|
|
|
|
})
|
2023-12-01 16:53:51 -05:00
|
|
|
])
|
|
|
|
++ (optionals isTouchscreen (with pkgs; [
|
2023-11-30 17:17:34 -05:00
|
|
|
lisgd
|
|
|
|
squeekboard
|
2023-12-01 02:07:14 -05:00
|
|
|
ydotool
|
2023-12-01 16:53:51 -05:00
|
|
|
]));
|
2023-11-30 17:17:34 -05:00
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|