mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
39 lines
712 B
Nix
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;
|
|
|
|
}
|