This commit is contained in:
2025-08-07 00:54:22 +03:00
parent da242bb982
commit b52f06e37a
14 changed files with 1273 additions and 5 deletions
+89
View File
@@ -0,0 +1,89 @@
# 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.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
nixpkgs.config.permittedInsecurePackages = [
"libsoup-2.74.3" # temp
];
# nix.settings.extra-sandbox-paths = [
# "/dev/kfd"
# "/sys/devices/virtual/kfd"
# "/dev/dri/renderD128"
# ];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"thunderbolt"
"usb_storage"
"uas"
"usbhid"
"sd_mod"
];
kernelModules = [
"kvm-amd"
"amdgpu"
];
extraModulePackages = [ ];
};
hardware = {
amdgpu = {
opencl.enable = true;
amdvlk = {
enable = true;
};
};
graphics.extraPackages = with pkgs; [
mesa
amf
];
};
# systemd.tmpfiles.rules = [
# "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
# ];
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/5938c796-6ff5-49d9-a3a6-022b4c32beeb";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/61BF-3342";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
};
swapDevices = [
{ device = "/dev/disk/by-uuid/d89bccd2-0672-4855-9d87-40e2688cdec4"; }
];
# 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
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.enp100s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp98s0.useDHCP = lib.mkDefault true;
#nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}