dotfiles/lib/default.nix

45 lines
735 B
Nix
Raw Normal View History

2024-10-06 15:25:05 -05:00
{
config,
inputs,
self,
...
2025-03-21 18:28:49 -05:00
}:
{
2024-10-06 15:25:05 -05:00
flake.lib = {
2025-03-21 18:28:49 -05:00
mkHome =
modules: system:
2024-10-06 15:25:05 -05:00
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
};
2025-03-21 18:28:49 -05:00
mkLinuxSystem =
modules:
2024-10-06 15:25:05 -05:00
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
};
};
}