mio-ops/hardware/eeepc701.nix

69 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2021-05-14 04:09:29 +00:00
# Hardware configuration file common to ASUS 701 EeePC4G-BK004
{
2022-03-07 14:26:15 +00:00
config,
lib,
pkgs,
...
}: {
2021-05-14 04:09:29 +00:00
imports = [
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
../profiles/host_common.nix
../profiles/powerManagement.nix
2021-05-17 04:18:01 +00:00
../profiles/server_common.nix
2021-05-14 04:09:29 +00:00
];
boot = {
initrd = {
availableKernelModules = [
"ata_piix"
"ehci_pci"
2021-11-16 04:57:23 +00:00
"sd_mod" # SCSI disk support
2021-05-14 04:09:29 +00:00
"uhci_hcd"
2021-11-16 04:57:23 +00:00
"usb_storage" # USB Mass Storage support
2021-05-14 04:09:29 +00:00
];
};
loader = {
grub = {
enable = true;
version = 2;
device = "/dev/sdb";
};
};
};
nixpkgs = {
config = {
2021-05-17 04:18:01 +00:00
allowUnfree = true;
2021-05-14 04:09:29 +00:00
packageOverrides = pkgs: {
2022-03-07 14:26:15 +00:00
stdenv =
pkgs.stdenv
// {
platform =
pkgs.stdenv.platform
// {
kernelExtraConfig = ''
HIGHMEM64G? n # 32-bit proc with > 4G RAM
HIGHMEM4G y # 32-bit proc with =< 4G RAM
'';
};
2021-05-14 04:09:29 +00:00
};
};
};
localSystem = {
# Ensure the right package architecture is used
system = "i686-linux";
config = "i686-unknown-linux-gnu";
};
};
2021-11-16 04:57:23 +00:00
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
2021-05-14 04:09:29 +00:00
2022-03-07 14:26:15 +00:00
swapDevices = [{device = "/dev/disk/by-label/swap";}];
2021-05-14 04:09:29 +00:00
2021-11-16 04:57:23 +00:00
networking.wireless.enable = true; # Enable wireless via wpa_supplicant.
2022-12-08 23:27:50 +00:00
nix.settings.max-jobs = lib.mkDefault 1;
2021-05-14 04:09:29 +00:00
}