nixos-config/modules/nixos/submodules/basics-wsl/default.nix
Christoph Hollizeck 89000f1eb2
chore: update basics
include zip, unzip and switch neofetch to fastfetch
2025-05-12 10:02:15 +02:00

56 lines
850 B
Nix

{
config,
lib,
namespace,
pkgs,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt enabled;
cfg = config.${namespace}.submodules.basics-wsl;
in
{
options.${namespace}.submodules.basics-wsl = {
enable = mkBoolOpt false "Whether or not to enable basic configuration.";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
fastfetch
fd
tree
ripgrep
fzf
eza
wslu
wsl-open
zip
unzip
];
${namespace} = {
nix = enabled;
apps.cli-apps.helix = enabled;
tools = {
git = enabled;
};
system.hardware = {
networking = enabled;
};
system = {
fonts = enabled;
locale = enabled;
time = enabled;
xkb = enabled;
};
};
};
}