57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{ den, inputs, ... }: {
|
|
den.aspects.core.nixos = { pkgs, ... }:
|
|
let
|
|
pkgs-unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system};
|
|
in {
|
|
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";
|
|
};
|
|
};
|
|
|
|
zramSwap = {
|
|
enable = true;
|
|
algorithm = "zstd";
|
|
memoryPercent = 300;
|
|
};
|
|
|
|
services.xserver = {
|
|
enable = false;
|
|
xkb.layout = "en";
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
curl
|
|
wget
|
|
pkgs-unstable.neovim
|
|
btop
|
|
nixd
|
|
unrar
|
|
p7zip
|
|
];
|
|
|
|
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";
|
|
};
|
|
};
|
|
}
|