refactor: statix, deadnix, alejandra

This commit is contained in:
Kat Inskip 2023-01-17 14:26:07 -05:00
parent 961ec369ba
commit 53eed4454d
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
57 changed files with 1296 additions and 963 deletions

74
tree.nix Normal file
View file

@ -0,0 +1,74 @@
{inputs, ...}:
(inputs.tree.tree {
inherit inputs;
folder = ./.;
config = {
# Exclude things that would overlap with namespace things, potentially
"/" = {
excludes = [
"flake"
"default"
"tree"
"inputs"
"outputs"
];
};
# Ignore the default.nix we actually use
shells = {
excludes = [
"default"
];
};
systems = {
excludes = [
"default"
];
};
# Required for all-system common imports
system.functor.enable = true;
# Re-map home directory profiles
home.evaluateDefault = true;
# Allow profile importing
"nixos/*".functor.enable = true;
"darwin/*".functor.enable = true;
"home/*".functor.enable = true;
# Various modules
"nixos/modules" = {
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
]);
};
};
"darwin/modules" = {
functor = {
enable = true;
external = with inputs; [
home-manager.darwinModules.home-manager
ragenix.nixosModules.age
];
};
};
"home/modules" = {
functor = {
enable = true;
external = with inputs;
[
nix-index-database.hmModules.nix-index
]
++ (with (import (inputs.arcexprs + "/modules")).home-manager; [
base16
]);
};
};
};
})
.impure