nixos-config/machines/AMD-Workstation/hardware-configuration.nix

64 lines
2.0 KiB
Nix
Raw Normal View History

2020-02-12 02:34:44 +04:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
2021-06-29 22:27:50 +03:00
{ config, lib, pkgs, modulesPath, ... }:
2020-02-12 02:34:44 +04:00
{
imports =
2021-06-29 22:27:50 +03:00
[ (modulesPath + "/installer/scan/not-detected.nix")
];
2020-02-12 02:34:44 +04:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2021-06-29 22:27:50 +03:00
{ device = "/dev/disk/by-uuid/6dd76867-e5be-4237-9af3-1aeaf0cbe04e";
2020-02-12 02:34:44 +04:00
fsType = "btrfs";
2021-06-29 22:27:50 +03:00
options = [ "subvol=nixos" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
2020-02-12 02:34:44 +04:00
};
2021-06-29 22:27:50 +03:00
fileSystems."/nix" =
{ device = "/dev/disk/by-uuid/6dd76867-e5be-4237-9af3-1aeaf0cbe04e";
2020-02-12 02:34:44 +04:00
fsType = "btrfs";
2021-06-29 22:27:50 +03:00
options = [ "subvol=nix" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
2020-02-12 02:34:44 +04:00
};
fileSystems."/home" =
2021-06-29 22:27:50 +03:00
{ device = "/dev/disk/by-uuid/6dd76867-e5be-4237-9af3-1aeaf0cbe04e";
2020-02-12 02:34:44 +04:00
fsType = "btrfs";
2021-06-29 22:27:50 +03:00
options = [ "subvol=home" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
2020-02-12 02:34:44 +04:00
};
2021-06-29 22:27:50 +03:00
fileSystems."/var" =
{ device = "/dev/disk/by-uuid/6dd76867-e5be-4237-9af3-1aeaf0cbe04e";
2020-02-12 02:34:44 +04:00
fsType = "btrfs";
2021-06-29 22:27:50 +03:00
options = [ "subvol=var" "compress-force=zstd" "noatime" "autodefrag" "ssd" ];
};
fileSystems."/media/bittorrent" =
{ device = "/dev/disk/by-uuid/6dd76867-e5be-4237-9af3-1aeaf0cbe04e";
fsType = "btrfs";
options = [ "subvol=bittorrent" "nodatacow" "ssd" ];
2020-02-12 02:34:44 +04:00
};
fileSystems."/boot" =
2021-06-29 22:27:50 +03:00
{ device = "/dev/disk/by-uuid/948B-11EC";
2020-02-12 02:34:44 +04:00
fsType = "vfat";
};
2021-06-29 22:27:50 +03:00
swapDevices = [
{
device = "/dev/disk/by-partuuid/417966a4-f0f1-4cf4-8954-f30007268a09";
randomEncryption.enable = true;
}
];
# high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true;
networking.hostId = "fb781078";
boot.initrd.supportedFilesystems = [ "btrfs" ];
boot.supportedFilesystems = [ "btrfs" ];
2020-02-12 02:34:44 +04:00
}