58 lines
859 B
Nix
58 lines
859 B
Nix
{
|
|
config,
|
|
lib,
|
|
namespace,
|
|
options,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.${namespace};
|
|
let
|
|
cfg = config.${namespace}.submodules.basics;
|
|
in
|
|
{
|
|
options.${namespace}.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
|
|
fzf
|
|
eza
|
|
|
|
#optional
|
|
pciutils
|
|
usbutils
|
|
htop
|
|
];
|
|
|
|
${namespace} = {
|
|
nix = enabled;
|
|
|
|
apps.cli-apps.helix = enabled;
|
|
|
|
tools = {
|
|
git = enabled;
|
|
};
|
|
|
|
system.hardware = {
|
|
networking = enabled;
|
|
};
|
|
|
|
system = {
|
|
boot = enabled;
|
|
fonts = enabled;
|
|
locale = enabled;
|
|
time = enabled;
|
|
xkb = enabled;
|
|
};
|
|
};
|
|
};
|
|
}
|