dotfiles/lib/default.nix
2025-01-08 19:06:14 -06:00

41 lines
723 B
Nix
Executable file

{
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
;
};
};
}