mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
30 lines
574 B
Nix
30 lines
574 B
Nix
![]() |
{
|
||
|
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;
|
||
|
};
|
||
|
};
|
||
|
}
|