mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
28 lines
447 B
Nix
Executable file
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;
|
|
}
|