mirror of
https://github.com/divnix/digga.git
synced 2024-11-27 17:36:06 +03:00
cef548d232
This reverts commit48afb873c1
, reversing changes made to7e58e0457e
.
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{
|
|
description = "A highly structured configuration database.";
|
|
|
|
epoch = 201909;
|
|
|
|
inputs.nixpkgs.url = "github:nrdxp/nixpkgs/fork";
|
|
inputs.home.url = "github:nrdxp/home-manager/flakes";
|
|
|
|
outputs = args@{ self, home, nixpkgs }:
|
|
let
|
|
inherit (builtins) listToAttrs baseNameOf attrNames readDir;
|
|
inherit (nixpkgs.lib) removeSuffix;
|
|
|
|
pkgs = import nixpkgs {
|
|
system = "x86_64-linux";
|
|
overlays = self.overlays;
|
|
};
|
|
in {
|
|
nixosConfigurations = let configs = import ./hosts args;
|
|
|
|
in configs;
|
|
|
|
overlay = import ./pkgs;
|
|
|
|
overlays = let
|
|
overlays = map (name: import (./overlays + "/${name}"))
|
|
(attrNames (readDir ./overlays));
|
|
in overlays;
|
|
|
|
packages.x86_64-linux = {
|
|
inherit (pkgs) sddm-chili dejavu_nerdfont purs pure;
|
|
};
|
|
|
|
nixosModules = let
|
|
prep = map (path: {
|
|
name = removeSuffix ".nix" (baseNameOf path);
|
|
value = import path;
|
|
});
|
|
|
|
moduleList = import ./modules;
|
|
|
|
modulesAttrs = listToAttrs (prep moduleList);
|
|
|
|
profilesList = import ./profiles;
|
|
|
|
profilesAttrs = { profiles = listToAttrs (prep profilesList); };
|
|
in modulesAttrs // profilesAttrs;
|
|
};
|
|
}
|