stockholm/makefu/1systems/filepimp.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
../2configs/fs/single-partition-ext4.nix
../2configs/tinc-basic-retiolum.nix
2016-01-03 05:08:01 +00:00
../2configs/smart-monitor.nix
];
krebs.build.host = config.krebs.hosts.filepimp;
2016-01-03 05:08:01 +00:00
services.smartd.devices = [
{ device = "/dev/sda"; }
{ device = "/dev/sdb"; }
{ device = "/dev/sdc"; }
{ device = "/dev/sdd"; }
{ device = "/dev/sde"; }
];
# AMD N54L
boot = {
2016-01-03 05:08:01 +00:00
loader.grub.device = "/dev/sde";
initrd.availableKernelModules = [
"ahci"
"ohci_pci"
"ehci_pci"
"pata_atiixp"
"usb_storage"
"usbhid"
];
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
};
hardware.enableAllFirmware = true;
hardware.cpu.amd.updateMicrocode = true;
2016-01-03 05:08:01 +00:00
zramSwap.enable = true;
zramSwap.numDevices = 2;
}