mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -05:00
feat: init
This commit is contained in:
commit
96c6f790fc
804 changed files with 33411 additions and 0 deletions
44
lib/default.nix
Executable file
44
lib/default.nix
Executable file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
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
|
||||
;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue