Skip to content

Commit

Permalink
fix: hm-module
Browse files Browse the repository at this point in the history
  • Loading branch information
Aylur committed Sep 9, 2024
1 parent b6566f2 commit c9a7ddd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions nix/hm-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ in {
Enable systemd integration.
'';
};

};

config = mkIf cfg.enable (mkMerge [
Expand All @@ -70,17 +69,15 @@ in {
(mkIf (cfg.package != null) (let
path = "/share/com.github.Aylur.ags/types";
pkg = cfg.package.override {
extraPackages = cfg.extraPackages;
extraPackages = cfg.extraPackages;
buildTypes = true;
};
in {
programs.ags.finalPackage = pkg;
home.packages = [pkg];
home.file.".local/${path}".source = "${pkg}/${path}";
})
)
(mkIf cfg.systemd.enable (
{
}))
(mkIf cfg.systemd.enable {
systemd.user.services.ags = {
Unit = {
Description = "AGS - A library built for GJS to allow defining GTK widgets in a declarative way.";
Expand All @@ -99,5 +96,6 @@ extraPackages = cfg.extraPackages;
WantedBy = ["graphical-session.target"];
};
};
}))
})
]);
}

0 comments on commit c9a7ddd

Please sign in to comment.