Skip to content

Commit

Permalink
add finalPackage for the home-manager module (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
musjj authored Feb 12, 2024
1 parent e117758 commit ca32986
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nix/hm-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ in {
'';
};

finalPackage = mkOption {
type = types.package;
readOnly = true;
visible = false;
description = ''
Resulting ags package.
'';
};

configDir = mkOption {
type = with types; nullOr path;
default = null;
Expand Down Expand Up @@ -55,6 +64,7 @@ in {
buildTypes = true;
};
in {
programs.ags.finalPackage = pkg;
home.packages = [pkg];
home.file.".local/${path}".source = "${pkg}/${path}";
}))
Expand Down

0 comments on commit ca32986

Please sign in to comment.