|
|
|
@ -50,9 +50,16 @@
|
|
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils, ... }@inputs: {
|
|
|
|
|
colmena = let
|
|
|
|
|
hosts = builtins.attrNames (nixpkgs.lib.filterAttrs (name: type: type == "directory") (builtins.readDir ./config/hosts));
|
|
|
|
|
hosts = builtins.filter (name: name != "base") (
|
|
|
|
|
builtins.attrNames (nixpkgs.lib.filterAttrs (name: type: type == "directory") (
|
|
|
|
|
builtins.readDir ./config/hosts)));
|
|
|
|
|
hostCfg = hostname: {
|
|
|
|
|
imports = [ (./config/hosts/${hostname}/configuration.nix) ];
|
|
|
|
|
imports = [
|
|
|
|
|
(./config/hosts/${hostname}/configuration.nix)
|
|
|
|
|
({ ... }: {
|
|
|
|
|
nixpkgs.overlays = [ self.overlays.kyouma ];
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
in {
|
|
|
|
|
meta = {
|
|
|
|
@ -84,6 +91,10 @@
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
images.lain = self.nixosConfigurations.lain.config.system.build.sdImage;
|
|
|
|
|
overlays = {
|
|
|
|
|
kyouma = import ./pkgs/overlay.nix;
|
|
|
|
|
default = self.overlays.kyouma;
|
|
|
|
|
};
|
|
|
|
|
} // flake-utils.lib.eachDefaultSystem (system: let
|
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
|
in {
|
|
|
|
|