Add ao's hardware-config
This commit is contained in:
parent
5157b86963
commit
15c78d7a16
|
@ -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;
|
||||||
|
|
28
hosts/ao/hardware-configuration.nix
Normal file
28
hosts/ao/hardware-configuration.nix
Normal 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"; }];
|
||||||
|
}
|
Loading…
Reference in a new issue