dotfiles/modules/home/cli/utilities/pciUtils/default.nix

28 lines
447 B
Nix
Executable file

{
flake,
osConfig,
pkgs,
...
}:
let
inherit (flake.config.machines.devices) ceres;
hostname = osConfig.networking.hostName;
nvTopPackage = {
inherit (pkgs)
pciutils
;
inherit (pkgs.nvtopPackages)
nvidia
;
};
hostLogic = if hostname == ceres.name then nvTopPackage else [ ];
in
{
home.packages =
builtins.attrValues {
inherit (pkgs)
pciutils
;
}
++ hostLogic;
}