blob: b68f048187d3e73ac5999348bf649bbbce103ab5 (
plain) (
tree)
|
|
{
config,
inputs,
lib,
pkgs,
...
}: {
imports =
[inputs.home-manager.nixosModules.home-manager]
++ (lib.custom.mapModulesRec' ./modules import);
environment.variables.NIXOSCONFIG = config.nixosConfig.dir;
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
#Timezone
time.timeZone = "America/New_York";
#Locale
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
#Nix package manager configs.
nix = {
registry = lib.mapAttrs (_: value: {flake = value;}) inputs;
nixPath = lib.mapAttrsToList (key: value: "${key}=${value.to.path}") config.nix.registry;
settings = {
experimental-features = "nix-command flakes";
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
boot = {
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
loader = {
systemd-boot.enable = lib.mkDefault true;
systemd-boot.configurationLimit = lib.mkDefault 5;
efi.canTouchEfiVariables = true;
};
initrd = {
verbose = false;
availableKernelModules = [
"xhci_pci"
"ahci"
"usb_storage"
"usbhid"
"sd_mod"
"dm_mod"
];
};
};
system.stateVersion = "24.05";
}
|