forked from pub-solar/infra
Benjamin Bädorf
e8ad662631
This commit changes the file structure around, so that we have the following parts: `/modules` contains reusable logic blocks for hosts. `/hosts` contains host configurations. `/lib` contains nix library functions. `/overlays` contains overlay files. `/public-keys` contains all information regarding public keys. This change reduces the complexity of flake.nix, instead delegating this out to the `default.nix` files in the above directories.
17 lines
464 B
Nix
17 lines
464 B
Nix
{ self, lib, inputs, ... }: {
|
|
# Configuration common to all Linux systems
|
|
flake = {
|
|
pub-solar.lib = let
|
|
callLibs = file: import file {inherit lib;};
|
|
in rec {
|
|
## Define your own library functions here!
|
|
#id = x: x;
|
|
## Or in files, containing functions that take {lib}
|
|
#foo = callLibs ./foo.nix;
|
|
## In configs, they can be used under "lib.our"
|
|
|
|
deploy = import ./deploy.nix { inherit inputs lib; };
|
|
};
|
|
};
|
|
}
|