nixos-configs/modules/ags/default.nix
matt1432 981c4251a6
All checks were successful
Discord / discord commits (push) Has been skipped
chore: add TODOs and small refactor
2024-01-04 03:39:14 -05:00

49 lines
985 B
Nix

{
ags,
config,
pkgs,
...
}: let
isTouchscreen = config.hardware.sensor.iio.enable;
in {
services.upower.enable = true;
home-manager.users.${config.vars.user}.imports = [
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";
package = ags.packages.${pkgs.system}.default;
extraPackages = with pkgs; [
libgudev
webkitgtk
];
};
home.packages =
[config.customPkgs.coloryou]
++ (with pkgs; [
# ags
sassc
playerctl
## gui
pavucontrol # TODO: replace with ags widget
])
++ (optionals isTouchscreen (with pkgs; [
lisgd
squeekboard
ydotool
]));
})
];
}