Move window manager exclusive to wm module

This commit is contained in:
2024-07-08 15:23:58 +07:00
parent 184ff78c09
commit 125f9a5eab
52 changed files with 70 additions and 139 deletions
+48
View File
@@ -0,0 +1,48 @@
{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";
# TODO: Add this in the offcial ags derivation
ags = pkgs.ags.overrideAttrs (_: prev: {
buildInputs = prev.buildInputs ++ [pkgs.libdbusmenu-gtk3];
});
in {
home.packages = with pkgs; [
# TODO: Remove this after testing
ags
# TODO: Find a way to add this for ags only
covercolors
brightnessctl
];
systemd.user.services.ags = {
Unit = {
Description = " A customizable and extensible shell ";
PartOf = systemdTarget;
Requires = systemdTarget;
After = systemdTarget;
};
Service = {
Type = "simple";
ExecStart = "${pkgs.ags}/bin/ags";
Restart = "always";
};
Install = {WantedBy = [systemdTarget];};
};
xdg.configFile."ags" = {
source = ./.;
recursive = true;
};
}