infra/nix/os/profiles/common/pkg.nix

33 lines
792 B
Nix
Raw Normal View History

2015-10-23 01:26:53 +02:00
{
2023-02-07 18:24:28 +01:00
pkgs,
# these come in via nodeSpecialArgs and are expected to be defined for every node
repoFlake,
nodeFlake,
packages',
2023-02-07 18:24:28 +01:00
...
}: {
imports = [
];
nix.registry.nixpkgs.flake = nodeFlake.inputs.nixpkgs;
home-manager.useGlobalPkgs = false;
home-manager.useUserPackages = true;
home-manager.users.root = import ../../../home-manager/configuration/text-minimal.nix;
# TODO: investigate an issue with the "name" arg contained here, which causes problems with home-manager
# home-manager.extraSpecialArgs = specialArgs;
# hence, opt for passing the arguments selectively instead
home-manager.extraSpecialArgs = {
inherit
repoFlake
packages'
nodeFlake
;
2023-02-07 18:24:28 +01:00
};
nixpkgs.config = {
allowBroken = false;
allowUnfree = true;
};
2015-10-23 01:26:53 +02:00
}