dotfiles/lib/default.nix

42 lines
723 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 {
2025-01-08 19:06:14 -06:00
inherit
system
;
2024-10-06 15:25:05 -05:00
config.allowUnfree = true;
};
extraSpecialArgs = {
2025-01-08 19:06:14 -06:00
inherit
inputs
;
2024-10-06 15:25:05 -05:00
};
2025-01-08 19:06:14 -06:00
inherit
modules
;
2024-10-06 15:25:05 -05:00
};
mkLinuxSystem = modules:
inputs.nixpkgs.lib.nixosSystem {
specialArgs = {
flake = {
2025-01-08 19:06:14 -06:00
inherit
config
inputs
self
;
2024-10-06 15:25:05 -05:00
};
};
2025-01-08 19:06:14 -06:00
inherit
modules
;
2024-10-06 15:25:05 -05:00
};
};
}