nixfiles/tree.nix
2023-08-09 12:25:52 -07:00

98 lines
2.3 KiB
Nix
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{inputs, ...}:
(inputs.tree.tree {
inherit inputs;
folder = ./.;
config = {
# Exclude things that would overlap with namespace things, potentially
"/" = {
excludes = [
"flake"
"default"
"tree"
"inputs"
"outputs"
"pkgs"
];
};
# Ignore the default.nix we actually use
shells = {
excludes = [
"default"
];
};
systems = {
excludes = [
"default"
];
};
# Required for all-system common imports
common.functor.enable = true;
# Re-map home directory profiles
kat.evaluateDefault = true;
"kat/user".evaluateDefault = true;
"kat/user/data".evaluate = true;
# Allow profile importing
"nixos/*".functor.enable = true;
"nixos/roles/*".functor = {
enable = true;
excludes = [
"scalpel"
];
};
"systems/*".aliasDefault = true;
"packages/*".aliasDefault = true;
"nixos/hardware".evaluateDefault = true;
"nixos/hardware/*".functor.enable = true;
"darwin/*".functor.enable = true;
"kat/*".functor.enable = true;
# Various modules
"modules/common" = {
functor = {
enable = true;
};
};
"nixos/hardware" = {
external = inputs.nixos-hardware.outputs.nixosModules;
};
"modules/nixos" = {
functor = {
enable = true;
external = with inputs;
[
nix-index-database.nixosModules.nix-index
home-manager.nixosModules.home-manager
minecraft.nixosModules.minecraft-servers
sops-nix.nixosModules.sops
]
++ (with (import (inputs.arcexprs + "/modules")).nixos; [
base16
base16-shared
]);
};
};
"modules/darwin" = {
functor = {
enable = true;
external = with inputs; [
home-manager.darwinModules.home-manager
#konawall-rs.darwinModules.konawall
];
};
};
"modules/home" = {
functor = {
enable = true;
external = with inputs;
[
nix-index-database.hmModules.nix-index
konawall-rs.hmModules.konawall
]
++ (with (import (inputs.arcexprs + "/modules")).home-manager; [
base16
i3gopher
]);
};
};
};
})
.impure