home/natto/ags: init
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
37
home/natto/ags/default.nix
Normal file
37
home/natto/ags/default.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ pkgs, lib, config, inputs, ... }:
|
||||
let
|
||||
cfg = config.programs.ags;
|
||||
|
||||
deps = with pkgs; [
|
||||
sass
|
||||
gawk
|
||||
bash
|
||||
procps
|
||||
coreutils
|
||||
imagemagick
|
||||
config.wayland.windowManager.hyprland.package
|
||||
] ++ lib.optional config.isLaptop brightnessctl;
|
||||
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=${lib.makeBinPath deps}";
|
||||
ExecStart = "${cfg.package}/bin/ags";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user