[General+Flake] convert "default" module directory to subflake

Also move flatpak config from packages to desktop
This commit is contained in:
Antoine Viallon 2023-07-30 21:59:56 +02:00
parent 397282c7c6
commit 6d061dce0e
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
12 changed files with 577 additions and 78 deletions

15
lib/default.nix Normal file
View file

@ -0,0 +1,15 @@
{ lib ? import <nixpkgs/lib, ... }:
let
myLib = lib.makeExtensible (self: let
callLibs = file: import file {
inherit lib;
myLib = self;
};
in {
math = callLibs ./math.nix;
config = callLibs ./config.nix;
optimizations = callLibs ./optimizations.nix;
attrsets = callLibs ./attrsets.nix;
types = callLibs ./types.nix;
});
in myLib