nixos/modules/core.nix
2026-03-28 03:28:42 -03:00

47 lines
1,016 B
Nix

{ den, ... }: {
den.aspects.core.nixos = { pkgs, ... }: {
nixpkgs.config.allowUnfree = true;
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
services.xserver = {
enable = false;
layout = "en";
};
environment.systemPackages = with pkgs; [
curl
wget
neovim
btop
nixd
];
networking.networkmanager.enable = true;
time.timeZone = "America/Sao_Paulo";
i18n.defaultLocale = "en_US.UTF-8";
services.dbus.enable = true;
programs.dconf.enable = true;
environment.sessionVariables = {
XDG_SESSION_TYPE = "wayland";
CLUTTER_BACKEND = "wayland";
SDL_VIDEODRIVER = "wayland";
MOZ_ENABLE_WAYLAND = "1";
ELECTRON_OZONE_PLATFORM_HINT = "wayland";
EDITOR = "nvim";
};
};
}