Add aka's hardware-config
This commit is contained in:
parent
15c78d7a16
commit
915a87b1b4
|
@ -3,10 +3,11 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
imports = [
|
||||
./. # import common settings
|
||||
|
||||
../personal.nix # common settings
|
||||
./hardware-configuration.nix
|
||||
## Apps
|
||||
<modules/shell/zsh.nix>
|
||||
|
||||
## Services
|
||||
<modules/services/ssh.nix>
|
||||
<modules/services/plex.nix>
|
||||
# <modules/services/jellyfin.nix>
|
||||
|
|
27
hosts/aka/hardware-configuration.nix
Normal file
27
hosts/aka/hardware-configuration.nix
Normal 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"; }];
|
||||
}
|
Loading…
Reference in a new issue