47 lines
740 B
Nix
47 lines
740 B
Nix
{
|
|
options,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.wyrdgard; let
|
|
cfg = config.wyrdgard.submodules.basics;
|
|
in {
|
|
options.wyrdgard.submodules.basics = with types; {
|
|
enable = mkBoolOpt false "Whether or not to enable basic configuration.";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
neofetch
|
|
|
|
fd
|
|
tree
|
|
ripgrep
|
|
];
|
|
|
|
wyrdgard = {
|
|
nix = enabled;
|
|
|
|
tools = {
|
|
git = enabled;
|
|
nix-ld = enabled;
|
|
};
|
|
|
|
system.hardware = {
|
|
networking = enabled;
|
|
};
|
|
|
|
system = {
|
|
boot = enabled;
|
|
fonts = enabled;
|
|
locale = enabled;
|
|
time = enabled;
|
|
xkb = enabled;
|
|
};
|
|
};
|
|
};
|
|
}
|