dhu: added an ASUS EeePC 701 host
This commit is contained in:
parent
4348a36cb2
commit
c2afa8bc7e
63
hardware/eeepc701.nix
Normal file
63
hardware/eeepc701.nix
Normal file
|
@ -0,0 +1,63 @@
|
|||
# Hardware configuration file common to ASUS 701 EeePC4G-BK004
|
||||
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
||||
../profiles/host_common.nix
|
||||
../profiles/powerManagement.nix
|
||||
../profiles/server_common.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = [
|
||||
"ata_piix"
|
||||
"ehci_pci"
|
||||
"sd_mod" # SCSI disk support
|
||||
"uhci_hcd"
|
||||
"usb_storage" # USB Mass Storage support
|
||||
];
|
||||
};
|
||||
loader = {
|
||||
grub = {
|
||||
enable = true;
|
||||
version = 2;
|
||||
device = "/dev/sdb";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
config = {
|
||||
packageOverrides = pkgs: {
|
||||
stdenv = pkgs.stdenv // {
|
||||
platform = pkgs.stdenv.platform // {
|
||||
kernelExtraConfig = ''
|
||||
HIGHMEM64G? n # 32-bit proc with > 4G RAM
|
||||
HIGHMEM4G y # 32-bit proc with =< 4G RAM
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
localSystem = {
|
||||
# Ensure the right package architecture is used
|
||||
system = "i686-linux";
|
||||
config = "i686-unknown-linux-gnu";
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-label/nixos";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-label/swap"; }
|
||||
];
|
||||
|
||||
networking.wireless.enable = true; # Enable wireless via wpa_supplicant.
|
||||
nix.maxJobs = lib.mkDefault 1;
|
||||
}
|
16
hosts/dhu.nix
Normal file
16
hosts/dhu.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Configuration for an ASUS ASUS 701 EeePC4G-BK004
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../hardware/eeepc701.nix # Include common configuration options
|
||||
../secrets/wireless.nix
|
||||
];
|
||||
|
||||
deployment.targetHost = "10.42.0.119";
|
||||
networking.hostName = "dhu"; # Define your hostname.
|
||||
|
||||
system.stateVersion = "20.09"; # The version of NixOS originally installed
|
||||
|
||||
}
|
Loading…
Reference in a new issue