nixconfig/modules/nixos/common/base.nix
2025-11-12 03:04:49 -08:00

39 lines
712 B
Nix

# ~/nixconfig/modules.new/nixos/common/base.nix
{
config,
lib,
pkgs,
inputs,
...
}:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
powerManagement.cpuFreqGovernor = "ondemand"; # hopefully fix low cpu freq
# hardware.cpu.amd.updateMicrocode = true; # same
nixpkgs.config.allowUnfree = true;
time.timeZone = "America/Los_Angeles";
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nix.settings.trusted-users = [ "root" "death916" ];
zramSwap.enable = true;
swapDevices = [
{
device = "/swapfile";
size = 16 * 1024;
priority = -1;
}
];
networking.networkmanager.enable = true;
}