nixos-configs/modules/ags/default.nix
matt1432 77643378cc
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: rename vars.user to vars.mainUser
2024-01-09 13:13:04 -05:00

50 lines
1,009 B
Nix

{
ags,
config,
pkgs,
...
}: let
inherit (config.vars) configDir mainUser;
isTouchscreen = config.hardware.sensor.iio.enable;
in {
services.upower.enable = true;
home-manager.users.${mainUser}.imports = [
ags.homeManagerModules.default
({
config,
lib,
...
}: let
symlink = config.lib.file.mkOutOfStoreSymlink;
optionals = lib.lists.optionals;
in {
programs.ags = {
enable = true;
configDir = symlink "${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
]));
})
];
}