mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
47 lines
No EOL
1.1 KiB
Nix
47 lines
No EOL
1.1 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 = [
|
|
# "https://hyprland.cachix.org"
|
|
# "https://cache.flox.dev"
|
|
# # "https://nix-community.cachix.org"
|
|
# ];
|
|
# nix.settings.trusted-public-keys = [
|
|
# "hyprland.cachix.org-1:fAmf/fNyvJx5Jzlkz2eX2/RjY8w+FzB9q/t0B/s/aA4="
|
|
# "flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs="
|
|
# # "nix-community.cachix.org-1:mB9FSh9xQBNtfPKv2zntfNAxZ/7ITrQA3bFxIf/acADf4z68QUS+Njp/PVhvKK/l"
|
|
# ];
|
|
|
|
zramSwap.enable = true;
|
|
swapDevices = [
|
|
{
|
|
device = "/swapfile";
|
|
size = 16 * 1024;
|
|
priority = -1;
|
|
}
|
|
];
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
} |