Files
flake/modules/wm/ags/default.nix
2025-05-18 21:03:40 +02:00

49 lines
1.1 KiB
Nix

{pkgs, ...}: let
covercolors = pkgs.stdenv.mkDerivation {
name = "covercolors";
dontUnpack = true;
propagatedBuildInputs = [
(pkgs.python3.withPackages (pyPkgs:
with pyPkgs; [
material-color-utilities
pillow
]))
];
installPhase = "install -Dm755 ${./covercolors.py} $out/bin/covercolors";
};
# systemdTarget = "graphical-session.target";
ags = pkgs.ags_1.overrideAttrs (_: prev: {
buildInputs =
prev.buildInputs
++ [
pkgs.libdbusmenu-gtk3
];
});
in {
home.packages = with pkgs; [
ags
# TODO: Find a way to add this for ags only
covercolors
brightnessctl
blueberry
];
# systemd.user.services.ags = {
# Unit = {
# Description = " A customizable and extensible shell ";
# PartOf = systemdTarget;
# Requires = systemdTarget;
# After = systemdTarget;
# };
#
# Service = {
# Type = "simple";
# ExecStart = "${ags}/bin/ags";
# Restart = "always";
# };
#
# Install = {WantedBy = [systemdTarget];};
# };
xdg.configFile."ags".source = ./.;
}