dotfiles/lib/default.nix

30 lines
574 B
Nix
Raw Normal View History

2024-10-06 15:25:05 -05:00
{
config,
inputs,
self,
...
}: {
flake.lib = {
mkHome = modules: system:
inputs.home-manager.lib.homeManagerConfiguration {
pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
extraSpecialArgs = {
inherit inputs;
};
inherit modules;
};
mkLinuxSystem = modules:
inputs.nixpkgs.lib.nixosSystem {
specialArgs = {
flake = {
inherit config inputs self;
};
};
inherit modules;
};
};
}