Add aka's hardware-config

This commit is contained in:
Henrik Lissner 2020-01-17 16:32:29 -05:00
parent 15c78d7a16
commit 915a87b1b4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 31 additions and 3 deletions

View file

@ -3,10 +3,11 @@
{ config, ... }: { config, ... }:
{ {
imports = [ imports = [
./. # import common settings ../personal.nix # common settings
./hardware-configuration.nix
## Apps
<modules/shell/zsh.nix> <modules/shell/zsh.nix>
## Services
<modules/services/ssh.nix> <modules/services/ssh.nix>
<modules/services/plex.nix> <modules/services/plex.nix>
# <modules/services/jellyfin.nix> # <modules/services/jellyfin.nix>

View file

@ -0,0 +1,27 @@
{ config, lib, ... }:
{
imports = [
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
];
boot.initrd.availableKernelModules = [ "ohci_pci" "ehci_pci" "ahci" "firewire_ohci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" "wl" ];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
## CPU
nix.maxJobs = lib.mkDefault 2;
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/nixos";
fsType = "ext4";
options = [ "noatime" ];
};
"/boot" = {
device = "/dev/disk/by-uuid/boot";
fsType = "vfat";
};
};
swapDevices = [{ device = "/dev/disk/by-uuid/swap"; }];
}