mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Implement global custom libs as a flake output
This commit is contained in:
parent
f276848b18
commit
671a13239a
10 changed files with 40 additions and 31 deletions
|
|
@ -1,10 +1,7 @@
|
|||
{ self, inputs, ... }:
|
||||
let
|
||||
lib = inputs.nixpkgs.lib.extend (_: _: { custom = import "${self}/lib" inputs.nixpkgs.lib; });
|
||||
in
|
||||
{ self, ... }:
|
||||
{
|
||||
flake = {
|
||||
nixosModules.default.imports = lib.custom.listNixFilesRecursive "${self}/modules/system";
|
||||
homeManagerModules.default.imports = lib.custom.listNixFilesRecursive "${self}/modules/home";
|
||||
nixosModules.default.imports = self.lib'.listNixFilesRecursive "${self}/modules/system";
|
||||
homeManagerModules.default.imports = self.lib'.listNixFilesRecursive "${self}/modules/home";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue