mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 09:47:52 +00:00
[Hardware] Move hardware.nix in hardware/default.nix
This commit is contained in:
parent
789d36717e
commit
537b23cd39
2 changed files with 9 additions and 4 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
./services.nix
|
./services.nix
|
||||||
./filesystems.nix
|
./filesystems.nix
|
||||||
./hardening.nix
|
./hardening.nix
|
||||||
./hardware.nix
|
./hardware
|
||||||
./laptop.nix
|
./laptop.nix
|
||||||
./power.nix
|
./power.nix
|
||||||
./overlays.nix
|
./overlays.nix
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,16 @@ in
|
||||||
options.aviallon.hardware = { };
|
options.aviallon.hardware = { };
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./hardware/amd.nix
|
./amd
|
||||||
./hardware/nvidia.nix
|
./nvidia
|
||||||
./hardware/intel.nix
|
./intel
|
||||||
];
|
];
|
||||||
|
|
||||||
|
config = {
|
||||||
|
boot.binfmt.emulatedSystems = [
|
||||||
|
"armv7l-linux"
|
||||||
|
];
|
||||||
|
|
||||||
environment.systemPackages = []
|
environment.systemPackages = []
|
||||||
++ optional (cfg.amd.enable && cfg.nvidia.enable) pkgs.nvtop
|
++ optional (cfg.amd.enable && cfg.nvidia.enable) pkgs.nvtop
|
||||||
++ optional cfg.amd.enable pkgs.nvtop-amd
|
++ optional cfg.amd.enable pkgs.nvtop-amd
|
||||||
Loading…
Add table
Add a link
Reference in a new issue