nixfiles/tree.nix

91 lines
2.1 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, pkgs, ...}:
(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;
"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
ragenix.nixosModules.age
]
++ (with (import (inputs.arcexprs + "/modules")).nixos; [
base16
base16-shared
]);
};
};
"modules/darwin" = {
functor = {
enable = true;
external = with inputs; [
home-manager.darwinModules.home-manager
ragenix.nixosModules.age
];
};
};
"modules/home" = {
functor = {
enable = true;
external = with inputs;
[
nix-index-database.hmModules.nix-index
]
++ (with (import (inputs.arcexprs + "/modules")).home-manager; [
base16
swaylock
i3gopher
konawall
]);
};
};
};
})
.impure