system: format hardware config

This commit is contained in:
Dmitriy Pleshevskiy 2022-08-30 02:36:43 +03:00
parent 7121a83f32
commit 119f512d84
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -4,30 +4,33 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = imports = [
[ (modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/installer/scan/not-detected.nix") ];
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ]; boot = {
boot.initrd.kernelModules = [ ]; initrd = {
boot.kernelModules = [ "kvm-amd" ]; availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ];
boot.extraModulePackages = [ ]; kernelModules = [ ];
};
fileSystems."/" = kernelModules = [ "kvm-amd" ];
{ extraModulePackages = [ ];
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/969c5f68-631d-4429-b81b-0d81e050449b"; device = "/dev/disk/by-uuid/969c5f68-631d-4429-b81b-0d81e050449b";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/home" = "/home" = {
{
device = "/dev/disk/by-uuid/e17fb0c0-9482-436d-83e8-3760772fe9b8"; device = "/dev/disk/by-uuid/e17fb0c0-9482-436d-83e8-3760772fe9b8";
fsType = "ext4"; fsType = "ext4";
}; };
};
swapDevices = swapDevices = [{ device = "/dev/disk/by-uuid/1be15503-cd51-4c57-bb91-04f45a964202"; }];
[{ device = "/dev/disk/by-uuid/1be15503-cd51-4c57-bb91-04f45a964202"; }];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's