mirror of
https://github.com/artagaz/nix-config.git
synced 2026-06-23 02:05:45 +07:00
34 lines
1.4 KiB
Nix
34 lines
1.4 KiB
Nix
/* ┌───────────────────────────────────────────────────┐
|
||
│системные настройки через команду надо взять конфиг│
|
||
└───────────────────────────────────────────────────┘ */
|
||
# nixos-generate-config --show-hardware-config
|
||
|
||
{ self, ... }:
|
||
{
|
||
flake.nixosModules.nixxxHardware = { config, lib, pkgs, modulesPath, ... }: {
|
||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||
|
||
# какие модули ядра будут загружены
|
||
boot.initrd.availableKernelModules = [ "ata_piix" "mptspi" "uhci_hcd" "ehci_pci" "ahci" "sd_mod" "sr_mod" ];
|
||
boot.initrd.kernelModules = [ ];
|
||
boot.kernelModules = [ ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
# модули для вмваре
|
||
services.xserver.videoDrivers = [ "vmware" ];
|
||
virtualisation.vmware.guest.enable = true;
|
||
hardware.graphics.enable = true;
|
||
|
||
# диски
|
||
fileSystems."/" = {
|
||
device = "/dev/disk/by-uuid/d0270880-39ef-4ae8-8701-87606a0d4578";
|
||
fsType = "ext4";
|
||
};
|
||
swapDevices = [
|
||
{ device = "/dev/disk/by-uuid/b5ad4e1d-8495-4ebc-be6b-b8be539d0ac1"; }
|
||
];
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
};
|
||
}
|