mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
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.substituters = lib.mkForce [
|
|
"https://cache.nixos.org/"
|
|
"https://hyprland.cachix.org"
|
|
"https://cache.flox.dev"
|
|
"https://nix-community.cachix.org"
|
|
];
|
|
nix.settings.trusted-public-keys = lib.mkForce [
|
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
|
"flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs="
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
];
|
|
|
|
|
|
nix.settings.trusted-users = [ "root" "death916" ];
|
|
|
|
zramSwap.enable = true;
|
|
swapDevices = [
|
|
{
|
|
device = "/swapfile";
|
|
size = 16 * 1024;
|
|
priority = -1;
|
|
}
|
|
];
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
}
|