2019-12-02 22:18:30 -07:00
|
|
|
{
|
2019-12-05 01:36:15 -07:00
|
|
|
description = "A highly structured configuration database.";
|
2019-12-04 22:36:36 -07:00
|
|
|
|
2019-12-02 22:18:30 -07:00
|
|
|
epoch = 201909;
|
|
|
|
|
2020-01-06 00:26:48 -07:00
|
|
|
inputs.nixpkgs.url = "github:nrdxp/nixpkgs/fork";
|
2019-12-15 01:35:12 -07:00
|
|
|
inputs.home.url = "github:nrdxp/home-manager/flakes";
|
2019-12-13 21:39:25 -07:00
|
|
|
|
2020-01-10 21:55:09 -07:00
|
|
|
outputs = args@{ self, home, nixpkgs }:
|
2020-01-03 22:06:31 -07:00
|
|
|
let
|
2020-01-06 00:01:00 -07:00
|
|
|
inherit (builtins) listToAttrs baseNameOf attrNames readDir;
|
2020-01-04 16:08:49 -07:00
|
|
|
inherit (nixpkgs.lib) removeSuffix;
|
|
|
|
|
2020-01-03 22:06:31 -07:00
|
|
|
pkgs = import nixpkgs {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
overlays = self.overlays;
|
|
|
|
};
|
|
|
|
in {
|
2020-01-05 15:39:59 -07:00
|
|
|
nixosConfigurations = let configs = import ./hosts args;
|
|
|
|
|
|
|
|
in configs;
|
2020-01-01 19:24:09 -07:00
|
|
|
|
|
|
|
overlay = import ./pkgs;
|
|
|
|
|
2020-01-06 00:01:00 -07:00
|
|
|
overlays = let
|
|
|
|
overlays = map (name: import (./overlays + "/${name}"))
|
|
|
|
(attrNames (readDir ./overlays));
|
|
|
|
in overlays;
|
2020-01-01 19:24:09 -07:00
|
|
|
|
|
|
|
packages.x86_64-linux = {
|
2020-01-07 13:05:38 -07:00
|
|
|
inherit (pkgs) sddm-chili dejavu_nerdfont purs pure;
|
2019-12-30 17:45:30 -07:00
|
|
|
};
|
2019-12-04 22:36:36 -07:00
|
|
|
|
2020-01-04 16:08:49 -07:00
|
|
|
nixosModules = let
|
2020-01-04 16:23:15 -07:00
|
|
|
prep = map (path: {
|
2020-01-04 16:08:49 -07:00
|
|
|
name = removeSuffix ".nix" (baseNameOf path);
|
|
|
|
value = import path;
|
2020-01-04 16:23:15 -07:00
|
|
|
});
|
|
|
|
|
2020-01-10 22:39:42 -07:00
|
|
|
# modules
|
|
|
|
moduleList = import ./modules/list.nix;
|
2020-01-04 16:23:15 -07:00
|
|
|
modulesAttrs = listToAttrs (prep moduleList);
|
|
|
|
|
2020-01-10 22:39:42 -07:00
|
|
|
# profiles
|
|
|
|
profilesList = import ./profiles/list.nix;
|
2020-01-04 16:23:15 -07:00
|
|
|
profilesAttrs = { profiles = listToAttrs (prep profilesList); };
|
2020-01-10 22:39:42 -07:00
|
|
|
|
2020-01-04 16:08:49 -07:00
|
|
|
in modulesAttrs // profilesAttrs;
|
2020-01-01 19:24:09 -07:00
|
|
|
};
|
2019-12-02 22:18:30 -07:00
|
|
|
}
|