mirror of
https://github.com/divnix/digga.git
synced 2024-11-23 20:22:04 +03:00
f3e52ede3c
It was renamed to edition:
cc5d0a2497
leading to the following error:
error: flake 'git+file:///home/jtojnar/Projects/nixflk?ref=template&rev=31c2b767ca7cb901040e388794b34942807719e0' has an unsupported attribute 'epoch', at /nix/store/yndrc91vlh5vm0k4nngx303q1cjm77z9-source/flake.nix:4:3
but that itself has been deprecated:
warning: flake 'git+file:///home/jtojnar/Projects/nixflk' has deprecated attribute 'edition'
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{
|
|
description = "A highly structured configuration database.";
|
|
|
|
inputs.nixpkgs.url = "nixpkgs/release-20.03";
|
|
inputs.home.url = "github:nrdxp/home-manager/flakes";
|
|
|
|
outputs = inputs@{ self, home, nixpkgs }:
|
|
let
|
|
inherit (builtins) listToAttrs baseNameOf attrNames readDir;
|
|
inherit (nixpkgs.lib) removeSuffix;
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = self.overlays;
|
|
config = { allowUnfree = true; };
|
|
};
|
|
|
|
in {
|
|
nixosConfigurations =
|
|
let configs = import ./hosts (inputs // { inherit system pkgs; });
|
|
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;
|
|
});
|
|
|
|
# modules
|
|
moduleList = import ./modules/list.nix;
|
|
modulesAttrs = listToAttrs (prep moduleList);
|
|
|
|
# profiles
|
|
profilesList = import ./profiles/list.nix;
|
|
profilesAttrs = { profiles = listToAttrs (prep profilesList); };
|
|
|
|
in modulesAttrs // profilesAttrs;
|
|
};
|
|
}
|