Add ao's hardware-config

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

View file

@ -3,15 +3,16 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
{ {
imports = [ imports = [
./. # import common settings ../personal.nix
./hardware-configuration.nix
## Apps
<modules/shell/git.nix>
<modules/shell/zsh.nix>
## Services
<modules/services/ssh.nix> <modules/services/ssh.nix>
<modules/services/nginx.nix> <modules/services/nginx.nix>
<modules/services/gitea.nix> <modules/services/gitea.nix>
<modules/services/syncthing.nix> <modules/services/syncthing.nix>
<modules/shell/git.nix>
<modules/shell/zsh.nix>
]; ];
networking.networkmanager.enable = true; networking.networkmanager.enable = true;

View file

@ -0,0 +1,28 @@
{ 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" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" "wl" ];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
## CPU
nix.maxJobs = lib.mkDefault 2;
## Harddrives
fileSystems = {
"/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
options = [ "noatime" ];
};
"/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "vfat";
};
};
swapDevices = [{ device = "/dev/disk/by-label/swap"; }];
}