mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
49 lines
1.1 KiB
Nix
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 = ./.;
|
|
}
|