2024-03-23 13:27:10 +08:00
|
|
|
inputs:
|
|
|
|
{
|
2024-08-03 17:40:11 +08:00
|
|
|
options.nixos.packages.vasp = let inherit (inputs.lib) mkOption types; in mkOption
|
2024-03-23 13:27:10 +08:00
|
|
|
{
|
2024-08-03 17:40:11 +08:00
|
|
|
type = types.nullOr (types.submodule {});
|
|
|
|
default = if inputs.config.nixos.system.gui.enable then {} else null;
|
|
|
|
};
|
|
|
|
# TODO: add more options to correctly configure VASP
|
|
|
|
config = let inherit (inputs.config.nixos.packages) vasp; in inputs.lib.mkIf (vasp != null)
|
|
|
|
{
|
|
|
|
nixos.packages.packages._packages = inputs.lib.optionals (inputs.config.nixos.system.nixpkgs.march != null)
|
2024-07-05 20:25:30 +08:00
|
|
|
(with inputs.pkgs.localPackages.vasp; [ intel nvidia vtstscripts ]);
|
2024-03-23 13:27:10 +08:00
|
|
|
};
|
|
|
|
}
|