mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-03 20:42:01 +02:00
31 lines
726 B
Nix
31 lines
726 B
Nix
self: { config
|
|
, pkgs
|
|
, lib
|
|
, hm
|
|
, ...
|
|
}:
|
|
let
|
|
cfg = config.programs.reset;
|
|
defaultPackage = self.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
|
in
|
|
{
|
|
meta.maintainers = with lib.maintainers; [ DashieTM ];
|
|
options.programs.reset = with lib; {
|
|
enable = mkEnableOption "reset";
|
|
|
|
package = mkOption {
|
|
type = with types; nullOr package;
|
|
default = defaultPackage;
|
|
defaultText = lib.literalExpression ''
|
|
reset.packages.''${pkgs.stdenv.hostPlatform.system}.default
|
|
'';
|
|
description = mdDoc ''
|
|
Package to run
|
|
'';
|
|
};
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = lib.optional (cfg.package != null) cfg.package;
|
|
};
|
|
}
|