nixconfig/modules/nixos/common/base.nix
2025-07-11 04:14:18 -07:00

25 lines
604 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" ];
system.stateVersion = "24.11";
zramSwap.enable = true;
swapDevices = [ { device = "/swapfile"; size = 16 * 1024; priority = -1; } ];
}