another small reorg

This commit is contained in:
cnst
2024-08-03 14:59:44 +02:00
parent ae9ee0cb35
commit e6f172ea43
64 changed files with 18 additions and 11 deletions

52
home/opt/ags/default.nix Normal file
View File

@@ -0,0 +1,52 @@
{
inputs,
pkgs,
lib,
config,
...
}: let
requiredDeps = with pkgs; [
bash
bun
coreutils
dart-sass
gawk
imagemagick
procps
ripgrep
util-linux
];
guiDeps = with pkgs; [
gnome.gnome-control-center
mission-center
overskride
wlogout
];
dependencies = requiredDeps ++ guiDeps;
cfg = config.programs.ags;
in {
imports = [
inputs.ags.homeManagerModules.default
];
programs.ags.enable = true;
systemd.user.services.ags = {
Unit = {
Description = "Aylur's Gtk Shell";
PartOf = [
"tray.target"
"graphical-session.target"
];
};
Service = {
Environment = "PATH=/run/wrappers/bin:${lib.makeBinPath dependencies}";
ExecStart = "${cfg.package}/bin/ags";
Restart = "on-failure";
};
Install.WantedBy = ["graphical-session.target"];
};
}